Skip to main content
Glama
KonghuanSmart

calculate-mcp

data_codec

Encode or decode strings between Base64, Hex, ASCII/UTF-8, and URL formats to prepare data for transport, storage, or system interoperability.

Instructions

Encodes and decodes data between Base64, Hex, ASCII/UTF-8 string, and URL formats. For several operations or chained steps in one call, use batch_calc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesInput string to process
actionYesCodec operation
formatNoFormat of input (for to_base64) or output (for from_base64)text
urlSafeNoUse URL-safe Base64 alphabet without padding

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It communicates the transformations available but says nothing about return values, error behavior on invalid input (e.g. malformed Base64 or hex), or that the operation is a stateless pure transformation; the low-risk nature of a codec keeps this at minimum-viable rather than poor.

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?

Two sentences, zero filler: the capability statement comes first and the sibling routing hint second. Nothing is repeated from the schema and every clause earns its place.

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 four-parameter pure codec with a fully documented schema, the description covers what it does and when to switch to batch_calc. The one gap is that, with no output schema, it never states that the result is a string or how errors surface.

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 100%, so all four parameters are already documented, and the enum lists on action and format are self-explanatory. The description adds the format vocabulary but does not clarify the text/hex `format` semantics or the `urlSafe` padding behavior beyond what the schema states, so it stays at the baseline.

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 pair (encodes/decodes) and the exact resource (data) plus the supported codec families: Base64, Hex, ASCII/UTF-8, and URL. This clearly separates it from the arithmetic and bit-manipulation siblings, and it names batch_calc as the composite alternative.

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?

It gives an explicit routing rule — use batch_calc when you need several operations or chained steps in one call — which is real when-to-use guidance. It does not, however, say anything about which action to pick for a given direction of conversion or any input constraints.

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