Skip to main content
Glama

mechacut

validate_url

URL components + canonical form: IDN->punycode, default port dropped, path normpath, userinfo password masked. 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": "validate_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 behavioral burden, and it does disclose substantive output transformations: punycode conversion, port elision, path normpath, and password masking. However it never says what happens for a malformed URL (error vs. validity flag), whether any network resolution occurs, or which components are returned. The disclosed transformations are useful but the failure semantics are the critical gap.

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?

One dense, front-loaded line with zero filler; every clause names a concrete normalization rule. The telegraphic style ('URL components + canonical form') is slightly cryptic but remains parseable, and 'Free' earns its place only as a cost signal.

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

Completeness3/5

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

For a simple one-parameter tool with no output schema, the description need not document return values, but it should state the pass/fail contract. It covers transformation behavior yet omits what a caller gets for an invalid URL and which components are reported, leaving a real completeness gap for what is presumably a validation tool.

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 description coverage is 0% for the single 'url' parameter, so the description must compensate, and it only partially does: the mention of userinfo password masking implies credentialed URLs are accepted, but nothing is said about relative URLs, already-canonical input, or trailing formats. It adds a little meaning beyond the bare 'string' schema but leaves the accepted input domain underspecified.

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 resource and operation: it decomposes a URL into components and returns a canonical form, with concrete examples of the normalization rules (IDN->punycode, default port dropped, path normpath, password masked). The verb is implicit (parse/canonicalize rather than literally 'validate'), so an agent must infer the action from the name plus the enumerated transformations, but the resource and output intent are unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use, when-not-to-use, or prerequisite guidance anywhere in the description. 'Free' signals cost but not selection criteria, and no distinction is drawn between validating a URL and merely canonicalizing one. The agent must infer applicability from the tool name alone.

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.