Skip to main content
Glama

URL encode / decode

url_encode
Read-onlyIdempotent

Percent-encode or decode text with encodeURIComponent semantics. Pick an action to safely convert strings for URLs or restore the original value.

Instructions

Percent-encode or decode a string (encodeURIComponent semantics). (Same as IT-Tools /url-encoder.)

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

Input Schema

NameRequiredDescriptionDefault
textYes
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds real value by naming the exact semantics (encodeURIComponent, which leaves :/?#[]@ unescaped), but says nothing about behavior on malformed percent sequences during decode or about character encoding assumptions.

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 operation and its semantics. The IT-Tools reference in parentheses is a minor aside but earns its place as a discoverability hint for users familiar with that 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 two-parameter, read-only, non-open-world string transformer with no output schema, the description covers the essentials: both directions and the encoding variant. Only edge-case behavior (invalid percent escapes, Unicode handling) is left unstated, which is a minor gap at this complexity.

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 0%, so the description carries the burden. It partially compensates by tying the action values to the two operations and describing the input as a string, but it adds no detail on input encoding (UTF-8 vs other), invalid-input handling, or whether whole-string versus component-wise treatment applies.

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 gives a specific verb pair (percent-encode or decode) applied to a specific resource (a string), which maps directly onto the action enum. It does not explicitly distinguish itself from nearby siblings such as url_parse or html_entities, but the operation itself is unambiguous.

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?

Usage is only implied: an agent can infer it should call this when it needs URL-safe escaping or unescaping. There is no statement of when to prefer url_parse, base64, or html_entities instead, and no mention of prerequisites or limits.

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