Skip to main content
Glama
b-open-io

Bitcoin SV MCP Server

by b-open-io

utils_convertData

Converts data between utf8, hex, base64, and binary formats for use in blockchain, encryption, or file processing. Requires source and target encoding parameters.

Instructions

Converts data between different encodings (utf8, hex, base64, binary). Useful for transforming data formats when working with blockchain data, encryption, or file processing.

Parameters:

  • data (required): The string to convert

  • from (required): Source encoding format (utf8, hex, base64, or binary)

  • to (required): Target encoding format (utf8, hex, base64, or binary)

Example usage:

  • UTF-8 to hex: {"data": "hello world", "from": "utf8", "to": "hex"} → 68656c6c6f20776f726c64

  • UTF-8 to base64: {"data": "Hello World", "from": "utf8", "to": "base64"} → SGVsbG8gV29ybGQ=

  • base64 to UTF-8: {"data": "SGVsbG8gV29ybGQ=", "from": "base64", "to": "utf8"} → Hello World

  • hex to base64: {"data": "68656c6c6f20776f726c64", "from": "hex", "to": "base64"} → aGVsbG8gd29ybGQ=

Notes:

  • All parameters are required

  • The tool returns the converted data as a string

  • For binary conversion, data is represented as an array of byte values

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: all parameters are required, returns converted data as a string, and explains binary representation. It doesn't mention error handling, performance characteristics, or side effects, but covers essential operational details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and appropriately sized. It starts with a clear purpose statement, provides usage context, documents parameters with examples, and adds important notes. Every sentence adds value, and the information is front-loaded with the most important details first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a data conversion tool with no annotations and no output schema, the description does an excellent job covering purpose, parameters, and basic behavior. The examples are particularly helpful. It could be more complete by mentioning error cases or performance considerations, but it provides sufficient context for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0% (no parameter descriptions in schema), so the description fully compensates. It clearly documents all three parameters, their required status, valid values for 'from' and 'to' (utf8, hex, base64, binary), and provides multiple examples showing exactly how to use them together.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Converts') and resource ('data between different encodings'), and distinguishes it from sibling tools by focusing on data format transformation rather than blockchain or ordinal operations. The examples further clarify the exact functionality.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context about when to use the tool ('useful for transforming data formats when working with blockchain data, encryption, or file processing'), but doesn't explicitly state when NOT to use it or name specific alternatives among sibling tools. The guidance is helpful but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/b-open-io/bsv-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server