Skip to main content
Glama

Tidy Byte Tools API

URL encode or decode

url_codec
Read-onlyIdempotent

Percent-encode or decode a string or query map.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "url_codec"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoThe string to percent-encode or decode.
actionNoWhat to do: "encode", "decode", or "auto" (the default, which guesses).
paramsNoOptional object of query keys and values to encode into a query string, used instead of text.
componentNoSet to false to encode a whole URL instead of one piece of it. Default true.

Output Schema

NameRequiredDescriptionDefault
okYes
toolYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"What to do: \"encode\", \"decode\", or \"auto\" (the default, which guesses)."
    • addedInput schema / properties / component
      Added value: +{
      +  "description": "Set to false to encode a whole URL instead of one piece of it. Default true.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / params
      Added value: +{
      +  "description": "Optional object of query keys and values to encode into a query string, used instead of text.",
      +  "type": "object"
      +}
    • addedInput schema / properties / text / description
      Added value: +"The string to percent-encode or decode."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds only that input may be a query map as well as a string, and says nothing about how 'auto' guessing behaves or what happens on malformed input.

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?

One short sentence with the action verb front-loaded and zero filler. It is efficient, though the extreme brevity leaves obvious behavioral questions unaddressed rather than wasted space.

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

Completeness3/5

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

An output schema exists and annotations are rich, so return values and safety need no explanation. However, the asymmetric interaction between text and params, and what component=false or action='auto' actually do, are only discoverable by reading the schema — the description could reasonably say more for a four-parameter tool with a nested object.

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 coverage is 100% with per-parameter descriptions for text, action, params, and component, so the schema already carries the semantics. The phrase 'string or query map' loosely mirrors the text/params split but adds no format or precedence detail beyond the schema.

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

Purpose4/5

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

The description names a specific verb pair (percent-encode/decode) and the resources it accepts (a string or a query map), so an agent knows exactly what the tool does. It does not differentiate from sibling utilities like base64 or html_sanitize, which keeps it below a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus sibling text/encoding tools, and no hint about choosing between encode, decode, or the 'auto' mode. The only usage information lives in the schema parameter descriptions, not the tool description.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.