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 €9/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. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and openWorld, so the description does not need to re-establish basic safety. It goes beyond them meaningfully by disclosing rate limits (5 calls/day per IP), ephemerality ('files are deleted right after the call, nothing stored'), and the two auth mechanisms (X-API-Key header, x402 payment). The only thing holding it below a 5 is the absence of any statement about the shape of the result. The annotations and the description are fully consistent with each other.

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 sentences, front-loaded with the core capability, with operational details (privacy, tiering, auth) trailing behind it. The pricing URLs are long but they are decision-relevant for a metered API. Slightly dense with rate and pricing detail for a simple transform tool.

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 stateless two-mode text transform with a fully documented schema and no output schema, the description covers everything an agent needs: what it does, how to authenticate, what it costs, and that nothing is persisted. Only the return-value shape is left implicit, which is minor for an encode/decode operation.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents all four parameters, and that alone sets a baseline of 3. The description earns one point above that baseline by adding idempotent semantics for the two booleans ('whole link or single value', '+ as space'), which restates the parameter intent at a level of detail the terse schema descriptions do not. It does not add syntax or edge-case rules beyond that.

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?

The description opens with a specific verb and resource: 'Percent-encode or decode text and URLs'. The parenthetical scope note '(whole link or single value, + as space)' further pins down the two operating modes, which is enough to distinguish it from the base64 sibling without reading either 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 encode/decode distinction and the whole-link vs single-value distinction imply when each mode applies, and the pricing sentence tells you what access path to take. However, there is no explicit when-to-use or when-not-to-use guidance, and no named alternative such as base64_encode_decode for the agent to choose against.

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