Skip to main content
Glama

validator_validate_url

Validate URLs by checking scheme and host validity. Returns boolean valid status along with parsed scheme, host, path, and reason for invalid URLs.

Instructions

[validator] Validate a URL. Checks that it has a valid scheme and host. Returns {valid: bool, scheme: str, host: str, path: str, reason: str}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
allowed_schemesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description provides basic behavioral info: checks scheme and host, returns boolean and details. It implies a read-only operation but doesn't explicitly state side-effects or limitations (e.g., does it fetch?). Adequate but could be more precise.

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?

The description is extremely concise: two sentences that front-load the purpose ('Validate a URL') and follow with core behavior and return type. No wasted words.

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?

Given the tool's simplicity and output schema in description, it covers basic expectations. However, missing parameter description for 'allowed_schemes' and lack of default scheme list make it incomplete for someone unfamiliar with URL validation nuances.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description only indirectly covers the 'url' parameter (valid scheme/host) and ignores 'allowed_schemes'. This parameter's purpose and usage are left unexplained, requiring user inference.

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 clearly states the tool validates a URL by checking scheme and host, with explicit return fields. The verb 'Validate' and resource 'URL' are specific, distinguishing it from sibling validators (e.g., email, IP) by name and purpose.

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?

No guidance on when to use this tool versus alternatives like validator_validate_email or validator_validate_ip. The description only states what it does, not when to prefer it or avoid using it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server