Skip to main content
Glama

Encode, decode, or parse a URL

url_codec
Read-onlyIdempotent

Percent-encode or decode text, or parse a URL into its host, path, hash, and query parameters.

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": {
      "value": "<value>"
    },
    "name": "url_codec"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNocomponent
valueYes
actionNoparse
plusAsSpaceNoWhen decoding, treat + as a space.

Output Schema

NameRequiredDescriptionDefault
hashYes
portYes
queryYes
valueYes
paramsYes
hostnameYes
pathnameYes
protocolYes
usernameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds that parse returns host, path, hash, and query parameters, but it does not disclose error handling, duplicate query parameter behavior, or what component versus full encoding means.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single efficient sentence with no wasted words, and the primary actions are front-loaded.

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?

With an output schema present, the description need not explain return values. However, for a four-parameter tool with two enums and low schema coverage, the description should explain the mode distinction and give at least minimal action guidance; those gaps keep it from being complete.

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

Parameters2/5

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

Schema description coverage is only 25%, so the description must compensate for undocumented parameters. It maps the action values to encode/decode/parse, but it leaves the mode parameter (component vs full) and the value parameter's format entirely unexplained, and plusAsSpace is only described in the schema.

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 names specific verbs (percent-encode, decode, parse) and a specific resource (text or URL), and it distinguishes this tool from base64_codec by identifying percent-encoding. An agent can immediately tell what the tool does.

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 description implies the three actions through the action enum, but it gives no explicit guidance on when to choose encode versus decode versus parse, or when to use component versus full mode. Usage is inferable from the action names but not stated.

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.