Skip to main content
Glama

x402-validate-url

Validate URL: Parse value with the WHATWG URL parser and return valid plus protocol, host and port, or valid false when parsing throws. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the success payload (valid plus protocol, host, port) and the failure mode (valid false when parsing throws) rather than throwing to the caller. It omits what happens for edge cases like missing protocol or relative URLs, and only hints at payment/auth via the free-trial line. This is useful but not rich behavioral disclosure for an annotation-free tool.

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?

One front-loaded sentence covers mechanism, success fields, and failure behavior, followed by a separate pricing note. Nothing is redundant and the most important information comes first.

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?

For a single-parameter pure validation function with no output schema, the description is close to sufficient: it enumerates the returned fields and the failure outcome. The only real gap is the lack of differentiation from sibling URL tools, which matters given how many similar names exist in the catalog.

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 0% and the single parameter 'value' is undocumented, but the description's 'Parse value' plus the URL framing makes it clear the input is the URL string to check. Beyond that it adds no format, length, or encoding expectations, so it only marginally compensates for the bare schema.

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 states a specific verb and resource ('Validate URL') and goes further to name the mechanism (WHATWG URL parser), so the agent knows exactly what semantic validation is applied. It does not distinguish itself from closely related siblings such as x402-is-url, x402-url-parse, or x402-url-inspect, which keeps it from a 5.

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?

Usage is only implied by the name and the parsing semantics; there is no explicit statement of when to prefer this over x402-is-url (boolean check) or x402-url-parse (component extraction) despite heavy overlap with those siblings. An agent can infer the use case but receives no routing guidance or exclusions.

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