Skip to main content
Glama

Leer query string

query-parse
Read-onlyIdempotent

Convierte una cadena de consulta en un objeto; claves repetidas forman arreglos y, opcionalmente, notación con corchetes. Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: serializar un objeto como cadena de consulta (query-build). 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: Parses a URL query string (leading ? optional, + as space) into an object; repeated keys become arrays, and with nested=true a[b]=1 and a[]=1 bracket syntax builds objects/arrays. When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
queryYesQuery string (string; required).
nestedNoInterpret bracket notation (boolean; optional; default false).

Output Schema

NameRequiredDescriptionDefault
paramsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / query / examples
      Added value: +[
      +  "?a=1&b=hola+mundo&a=2&c=%C3%B1"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Parses a URL query string (leading ? optional, + as space) into an object; repeated keys become arrays, and with nested=true a[b]=1 and a[]=1 bracket syntax builds objects/arrays. When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: serializing an object to an application/x-www-form-urlencoded query string (query-build). 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."
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, and the description still adds real value on top: no network, no stored state, deterministic output, and hard limits (64 KB input, 1 s per call, 1 MB result). Those operational bounds are not recoverable from the annotations and directly affect how an agent should size its call.

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

Conciseness3/5

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

The core behavior is front-loaded and the exclusion is well placed, but the text is delivered twice (ES then EN) and the 'When' sentence is a long boilerplate list of irrelevant artifact types. Roughly a third of the content does not earn its place for this specific 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?

With rich annotations, an output schema and full parameter coverage, the description supplies enough — behavior, encoding rules, limits, the query-build exclusion — for correct invocation. The only shortfall is the over-broad 'When' list, which could make an agent try this tool on non-query-string artifacts.

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 baseline would be 3, but the description earns more by explaining what the schema only gestures at: the leading '?' is optional, '+' decodes as space, and nested=true turns a[b]=1 / a[]=1 into objects and arrays. That is meaningful semantics beyond 'Interpret bracket notation (boolean; optional; default false)'.

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 precise verb+resource ('Convierte una cadena de consulta en un objeto') and immediately specifies the two behaviors that define it: repeated keys become arrays and bracket notation builds nested objects/arrays. It also names the sibling it is not (query-build), 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 Guidelines3/5

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

The exclusion and alternative are explicit ('No para: serializar un objeto como cadena de consulta (query-build)'), which is genuinely useful routing. However, the 'Cuándo' clause is boilerplate that lumps in parsing an HTTP header, token, IP range, HTML or Markdown document or agent-readiness file — inputs this tool does not handle — so the when-to-use signal is muddied rather than sharpened.

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