---
title: utils | CodeWeaver Docs
description: API reference for codeweaver.providers.data.utils
url: "https://docs.knitli.com/api/providers/data/utils"
type: static
generatedAt: "2026-04-17T17:21:08.978Z"
---

# utils
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/providers/data/utils.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F&text=utils)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F&text=utils)[Share on Bluesky](https://bsky.app/intent/compose?text=utils%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F&title=utils)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F&t=utils)[Share on Email](mailto:?subject=utils&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F)[Share on WhatsApp](https://wa.me/?text=utils%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fdata%2Futils%2F&text=utils)
# `codeweaver.providers.data.utils`
[Section titled “codeweaver.providers.data.utils”](#codeweaverprovidersdatautils)
Utility functions for data providers.

## Function: `build_data_tool`
[Section titled “Function: build_data_tool”](#function-build_data_tool)

**

```
build_data_tool()
```

Build a data tool from the given configuration.

## Function: `get_provider_names_for_category`
[Section titled “Function: get_provider_names_for_category”](#function-get_provider_names_for_category)

**

```
get_provider_names_for_category()
```

Get the set of provider literal strings for the given provider category.

## Function: `get_schema_for_type`
[Section titled “Function: get_schema_for_type”](#function-get_schema_for_type)

**

```
get_schema_for_type()
```

Get the schema for the given type from the specified module. Or from a provided adapter.

## Function: `get_serializer_for_type`
[Section titled “Function: get_serializer_for_type”](#function-get_serializer_for_type)

**

```
get_serializer_for_type()
```

Get a serializer for the given type from the specified module. Or from a provided adapter.

## Function: `get_type_adapter`
[Section titled “Function: get_type_adapter”](#function-get_type_adapter)

**

```
get_type_adapter()
```

Get an adapter of the given type from the specified module.

## Function: `register_data_tool`
[Section titled “Function: register_data_tool”](#function-register_data_tool)

**

```
register_data_tool()
```

Register a data tool with the given MCP HTTP state.