Skip to main content
Glama

validate_url

Check whether a string is a well-formed http or https URL using syntax validation only, without making any network request.

Instructions

Validate that a string is a well-formed http/https URL (syntax check only; does not make a network request).

Args: url: The URL string to validate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses that this is a syntax-only check with no network request, but it does not state the return value or error behavior, which would complete the behavioral picture.

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 appropriately sized and front-loaded, stating the core behavior in the first sentence and only adding a short parameter note afterward. There is no wasted prose.

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 simple validation tool, the description covers the essential behavioral constraint: syntax-only validation with no network request. The main remaining gap is that it does not describe the return value or error behavior, which matters because no output schema is provided.

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?

Schema description coverage is 0%, so the description must compensate. It does so reasonably well by naming the sole parameter and describing it as the URL string to validate, while the main description constrains it to well-formed http/https URLs.

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 states a specific verb and resource: validate a string as an http/https URL. It also distinguishes the operation from network-oriented siblings by clarifying it is a syntax check only and does not make a network request.

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?

It clearly explains the context for using this tool: syntax validation only, with no network request. However, it does not explicitly name alternatives such as parse_url, fetch_url, or check_connectivity, so the routing guidance is strong but not fully explicit.

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