Skip to main content
Glama

Text to binary / hex

text_to_binary
Read-onlyIdempotent

Convert text to UTF-8 bytes in binary, hex, or decimal, or decode binary and hex strings back into readable text.

Instructions

Show the UTF-8 bytes of text as binary, hex and decimal, or turn binary/hex back into text. (Same as IT-Tools /text-to-binary.)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>",
      "text": "<text>"
    },
    "name": "text_to_binary"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
actionYes
formatNoInput format when decodingbinary

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered and the bar is lower. The description adds that output includes binary, hex, and decimal representations and references IT-Tools parity, but says nothing about how decoding handles invalid input or whether whitespace/separators are tolerated.

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

Conciseness4/5

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

Two tight clauses, front-loaded with the primary encoding behavior followed by the reverse direction. The parenthetical IT-Tools reference is minor filler but useful for parity expectations, so nothing meaningfully wasteful.

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 three-parameter, side-effect-free conversion tool with no output schema, the description covers both directions and the output notations an agent needs. The remaining omission is error/edge-case behavior on decode, which is small for a tool of this complexity.

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

Parameters3/5

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

Schema description coverage is only 33%, so the description must carry more weight; it does clarify that 'format' concerns the decoding direction and that binary and hex are the two byte notations. It still leaves the 'action' parameter's effect implicit and never explains how text is interpreted when decoding, so the gap is only partly closed.

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?

States a specific verb and resource pair ('Show the UTF-8 bytes of text as binary, hex and decimal') and the inverse operation ('turn binary/hex back into text'). The byte-encoding scope is concrete enough to distinguish it from neighboring tools like base64 or hash_text without opening the schema.

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

Usage Guidelines3/5

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

The two directions (text→bytes and bytes→text) are described, which implicitly maps to the encode/decode action and gives the agent enough to pick a mode. However, there is no explicit when-to-use guidance, no statement of when to prefer a sibling such as base64, and no note on what happens if action and format disagree.

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