Skip to main content
Glama

check_url

Checks whether a URL is allowed under a network policy before executing a request. Returns allowed status and reason to gate tool calls.

Instructions

Check whether a URL is allowed under a network policy. Returns { allowed, reason } without making any actual request. Use this to gate tool calls before they execute.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to check.
methodNoHTTP method (default GET).
policyYesA simplified network policy. Use { allow: ["api.openai.com", "*.example.com"] }. Optional: deny: string[], methods: string[].
Behavior4/5

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

No annotations exist, so the description carries full burden. It states the tool returns { allowed, reason } without making an actual request, disclosing its read-only safety profile. No additional behavioral traits are needed for this simple check.

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 two sentences with no wasted words. It front-loades the purpose and immediately describes the output and non-request behavior.

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

Completeness5/5

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

The tool has a nested object parameter but no output schema. The description compensates by explaining the output shape and use case, making it complete for an agent to understand and invoke correctly.

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?

Input schema has 100% description coverage; all three parameters (url, method, policy) are described in the schema. The description does not add further meaning beyond what the schema provides, so baseline score of 3 is appropriate.

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 checks a URL against a network policy, returns an allowed/reason object, and does so without making a request. It distinguishes itself from siblings like check_urls_batch (batch) and validate_policy (policy validation).

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?

The description explicitly says 'Use this to gate tool calls before they execute,' providing clear usage context. It does not explicitly state when not to use or name alternatives, but the sibling list implies batch and validation alternatives.

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/MukundaKatta/agentguard-mcp'

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