Skip to main content
Glama

Codificar URL (porcentaje)

url-encode
Read-onlyIdempotent

Codifica texto para URL: modo componente, formulario (espacio como +) o ruta (conserva /). Cuándo: hay que convertir bytes o texto a esta codificación, o desde ella, con exactitud y sin adivinar. No para: decodificar texto con codificación porcentual (url-decode). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Percent-encodes text for a URL: component mode (like encodeURIComponent), form mode (space as +, application/x-www-form-urlencoded) or path mode (keeps /). When: bytes or text have to be converted to or from this encoding exactly, without guessing. Not for: decoding percent-encoded text (url-decode). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.

Input Schema

NameRequiredDescriptionDefault
modeNoEncoding rules (optional; one of: component, form, path; default "component").component
textYesText to encode (string; required).

Output Schema

NameRequiredDescriptionDefault
encodedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text / examples
      Added value: +[
      +  "a b&c=d/é"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Adds real disclosure beyond the annotations: no side effects, no network, no stored state, determinism, and concrete limits (64 KB input, 1 s, 1 MB result). Minor internal noise: saying it converts text 'to or from this encoding' blurs the very decode boundary established later, and the 64 KB input cap reads oddly against the schema's 1 MB maxLength.

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?

Front-loaded with the operation and modes, then tightly labelled sentences for when/not-for/side effects/limits, so an agent can scan it. The full Spanish/English duplication roughly doubles length for no added information, which is the main inefficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers everything needed to call it correctly: mode semantics, the decode alternative, safety profile, determinism, and size/time limits. An output schema exists, so return-value explanation is not required, and nothing material is left implicit.

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 baseline is 3, but the description genuinely adds meaning to the mode enum by mapping component/form/path to recognizable encoding standards and behaviours (space as +, '/' preserved). The text parameter is only echoed, not enriched.

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?

States the specific operation (percent-encoding text for a URL) and breaks it into three named modes with concrete semantics (encodeURIComponent-like, space as +, keeps /). It also explicitly names the sibling it is not, url-decode, so an agent can distinguish the pair without opening 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'When:' gives the triggering condition (need exact conversion to/from this encoding without guessing) and 'No para:'/'Not for:' names the excluded case plus the alternative tool url-decode. That is explicit when/when-not/alternative guidance.

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