Skip to main content
Glama

url_codec

Percent-encodes or decodes text as a URI component or full URI. 0.001 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
modeNoencode or decodeencode
valueYesInput
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description alone carries the behavioral burden; it does disclose the paid model (0.001 USDC per call via x402), which is genuinely useful context not found elsewhere. However it says nothing about error behavior on malformed input, double-encoding of already-encoded values, or whether encoding is reversible in edge cases.

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?

Two sentences, front-loaded with the core operation and followed by the payment constraint. Nothing is redundant and no sentence can be removed without losing needed information.

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?

For a simple codec tool with full schema coverage and no output schema, the description covers the operation and payment model but omits return-value shape (encoded/decoded string) and failure modes. The unexplained 'component vs full URI' capability is an unresolved 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 schema already documents mode, value, and the payment-proof flow in detail. The description adds no parameter-level guidance and introduces a 'component vs full URI' distinction that has no corresponding parameter, leaving the agent unsure how that scope is selected.

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 names a specific verb pair (percent-encodes or decodes) and resource (URI component or full URI), which clearly separates it from siblings like url_parse or base64. It does not explicitly name a sibling to contrast with, but the operation 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?

The encode/decode framing implies when the tool applies, but there is no explicit statement of when to choose this over url_parse, base64, or hex_codec, and no exclusions or prerequisites beyond the payment note. Usage is inferable but not guided.

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.