Skip to main content
Glama

Analizar URL

url-parse
Read-onlyIdempotent

Analiza una URL absoluta (WHATWG) en esquema, host, puerto, ruta, parámetros y fragmento. Nunca devuelve contraseñas. 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: construir una URL desde una base, segmentos de ruta y parámetros de consulta (url-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 an absolute URL with the WHATWG URL parser into scheme, host, port (with default), path, query parameters (repeated keys as arrays), fragment and origin. Passwords are never echoed. 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
urlYesURL (string; required; up to 8192 chars).

Output Schema

NameRequiredDescriptionDefault
hrefNo
pathNo
portNo
queryNo
originNo
schemeNo
fragmentNo
hostnameNo
usernameNo
default_portNo
has_passwordNo
path_segmentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / url / examples
      Added value: +[
      +  "https://user@Example.COM:8080/a/b%20c?x=1&x=2&y=#top"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Parses an absolute URL with the WHATWG URL parser into scheme, host, port (with default), path, query parameters (repeated keys as arrays), fragment and origin. Passwords are never echoed. 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: building a URL from a base, optional path segments (url-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?

Goes well beyond the annotations (which already declare read-only, idempotent, non-destructive) by disclosing concrete behavioral traits: no network access, no stored state, deterministic output, passwords never echoed, repeated query keys returned as arrays, and hard limits (64 KB input, 1 s per call, 1 MB result). These are exactly the operational constraints an agent needs before calling.

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?

Purpose is front-loaded and the 'Cuándo / No para / Efectos secundarios / Determinista / Límites' structure is easy to scan. But the content is duplicated in Spanish and English, the English text is largely repeated from inputSchema.description, and the 'when' list is padded with loosely related examples, inflating length without adding selection value.

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?

An output schema exists, so return fields need no prose explanation, and limits, determinism and side effects are all stated. The one gap is error behavior: it never says what happens when the URL is not absolute, malformed, or exceeds 8192 characters, which matters for a single-input parser.

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?

Only one parameter and schema coverage is 100%, with maxLength, an example, and a description in the schema, so the baseline is 3. The prose restates the same facts ('absolute URL') and adds no syntax or edge-case detail (e.g., what happens to relative or malformed input) beyond 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?

States a specific verb and resource: parses an absolute URL with the WHATWG parser and enumerates the outputs (scheme, host, port with default, path, query params as arrays, fragment, origin). It explicitly names the sibling it is not (url-build), so an agent can separate parse from construct 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 Guidelines4/5

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

Provides an explicit 'Cuándo' section and an explicit 'No para: construir una URL desde una base ... (url-build)' exclusion naming the alternative. The trigger list is diluted, however: claiming the tool applies to 'un token, una versión, un rango de IP, un documento HTML' is questionable for a URL parser and could mislead an agent into calling it on non-URL input.

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