Skip to main content
Glama

Agent Data Tools: Utilities

URL decode: decode percent-encoded URL text

url_decode
Read-only

Decode percent-encoded text, treating + as a space when plus=true (form encoding). Use to read encoded links and form data. Example: text=a%20b%26c. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "text": "<text>"
    },
    "name": "url_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
plusNotrue to read + as space
textYesThe encoded text

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / plus / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "number",
      +  "boolean"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description corroborates with 'Reads or computes only and changes nothing'. It adds genuinely new behavioral context the annotations do not carry: the per-call price ($0.01 via x402 USDC or card key), the first-10-free allowance, failed calls being free, and the warning that repeats still cost — consistent with idempotentHint=false. It omits how invalid percent sequences are handled.

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?

Front-loaded with the purpose and the plus behavior, followed by usage, an example, and pricing. Dense but nearly every clause carries information; the pricing sentence is long relative to the tool's simplicity but is decision-relevant for an agent that pays per call.

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 2-parameter, single-purpose decode with full annotation coverage and no output schema, the description covers purpose, the plus flag, an example input, and cost. The only real gap is error/invalid-input behavior, which is minor for this tool class.

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%, so both parameters are already documented ('true to read + as space' and 'The encoded text'). The description adds the 'form encoding' framing for plus and a concrete input example, which is useful but marginal; baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource: 'Decode percent-encoded text', with the title reinforcing 'percent-encoded URL text'. That wording separates it from base64_decode and jwt_decode by naming the encoding. It never explicitly names url_encode as the inverse (or rules out the other decoders), so it stops short of 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 Guidelines3/5

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

'Use to read encoded links and form data' gives a positive usage context, which is more than nothing. There is no exclusion or named alternative, so an agent must infer that url_encode is the reverse operation and that other decoders cover other encodings.

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.

Resources