Skip to main content
Glama

URL Encode / Decode API - percent-encoding

url_encode_decode
Read-onlyIdempotent

Percent-encode or decode text and URLs (whole link or single value, + as space). Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/url-encode-decode.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "encode",
      "text": "https://example.com/a b?x=ü",
      "wholeLink": true
    },
    "name": "url_encode_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoencode or decodeencode
textYesThe text
wholeLinkNoKeep : / ? & = as they are (mode=encode)
plusIsSpaceNoTreat + as space (mode=decode)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, it discloses real operational traits: server-side execution, immediate deletion of files, no storage, a free tier of 5 calls/day, and paid access via X-API-Key or x402. The auth and rate-limit details are genuinely useful, though the file-deletion claim is odd for a tool with no file parameters.

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?

Three sentences, front-loaded with the core operation and followed by operational facts. The pricing and URL details are dense but relevant; little is wasted.

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 simple two-mode string transform with a fully documented four-parameter schema, the description covers behavior, limits, and auth adequately. It doesn't state the return shape, but with no output schema and an obvious result type, that is a minor gap.

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 the baseline is 3. The description's mentions of '+' as space and 'whole link or single value' loosely map to plusIsSpace and wholeLink, but they largely restate what the schema already documents in detail.

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 states a specific verb pair and resource: 'Percent-encode or decode text and URLs'. That is clear enough to distinguish it from a sibling like base64_encode_decode, though the differentiation is implicit rather than stated by name.

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?

It offers implied usage context ('whole link or single value, + as space'), which hints at when each option applies, but gives no explicit when-to-use vs when-not guidance or named alternatives.

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