Skip to main content
Glama

Agent Data Tools: Utilities

URL parser, parse a URL: split a URL into scheme, host, port, path, query parameters and fragment

url_parse
Read-only

Split a URL into protocol, host, port, path, query parameters (as an object), hash and origin, and report whether the host is an IP address. Use to read query parameters or check a link's host. Example: url=https://example.com:8080/a/b?x=1&y=2#top. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "url": "<url>"
    },
    "name": "url_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to parse

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint true, destructiveHint false, openWorldHint false and idempotentHint false. The description adds genuinely new context the annotations do not carry: per-call pricing, the first 10 free, failed calls free, and the consequence of non-idempotency ('each call is charged, so repeats are not free'). 'Reads or computes only and changes nothing' is redundant with the annotations, and no error/rate-limit behavior is described beyond free failed calls.

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 capability, then usage, then an example, then cost and safety notes — a sensible priority order with no filler. The payment sentence is dense with detail ('Price $0.01/call via x402 USDC or a card key (/credits)...') but that information is decision-relevant rather than decorative.

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?

No output schema exists, so the description compensates by listing the return fields and the IP-address flag. Combined with a safe, simple single-parameter read tool, an agent has enough to call it correctly; only the exact shape of the returned query-parameters object and error output are 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?

Only one parameter whose schema description is already at 100% coverage, so the baseline is 3. The description earns an extra point by supplying a worked example URL that demonstrates the expected format, including port, path, query string and fragment.

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 concrete verb ('Split') and enumerates exactly the components produced: protocol, host, port, path, query parameters as an object, hash, origin, plus an IP-address check. The enumerated outputs make it unmistakable against siblings like url_encode, url_decode or url_meta without needing to name them.

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?

Gives clear positive conditions: 'Use to read query parameters or check a link's host,' backed by a concrete example URL. It lacks explicit exclusions (e.g., when to prefer url_decode or url_meta instead), so it stops short of full routing 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