Skip to main content
Glama

PREFLIGHT — URL Routing for AI Agents

Check URL Before Fetching

preflight_check
Read-onlyIdempotent

Before fetching, crawling, scraping, opening, or browser-rendering an unfamiliar http/https URL, call this with the ACTUAL destination URL. Returns the best first route: HTTP, BROWSER, MACHINE_ENDPOINT, or AVOID, plus access/JS/size/cost hints. Do not substitute example.com when a real task URL is available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesActual absolute http/https destination URL from the current task. Use before the first fetch or browser request.

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false. The description adds meaningful behavioral context about what the tool returns (HTTP/BROWSER/MACHINE_ENDPOINT/AVOID route plus access/JS/size/cost hints) and implies it performs a pre-check without stating side effects, which aligns with the annotations.

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, immediately front-loaded with when to use it and what it returns. No wasted words; every clause carries essential information.

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?

Given the single parameter, no output schema, and simple operation, the description provides sufficient context: when to use, what it returns, and which URL to pass. It is complete for an agent to select and invoke the tool correctly.

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?

The schema already covers the single parameter 'url' with a clear description. The tool description adds emphasis on 'ACTUAL destination URL' and the prohibition against substituting example.com, enriching the parameter semantics beyond the schema alone.

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's purpose: preflight URL checking before any fetching/crawling/scraping/rendering, and specifies the output (best first route plus hints). It distinguishes itself from the sibling tool 'preflight_feedback' by focusing on the pre-fetch check action.

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

Usage Guidelines5/5

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

The description explicitly says when to use the tool ('Before fetching, crawling, scraping, opening, or browser-rendering an unfamiliar http/https URL') and gives a concrete rule ('call this with the ACTUAL destination URL'). It also warns against substituting example.com, providing clear usage guidance.

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.

TDQS

A4.1/5.0
Disambiguation5/5

The two tools have clearly distinct purposes: one performs the initial URL check and routing, the other collects feedback after following the recommendation. There is no overlap or ambiguity between them.

Naming Consistency4/5

Both tools share the 'preflight_' prefix and use snake_case, but the second word differs in part of speech ('check' is a verb, 'feedback' is a noun). The pattern is predictable yet not perfectly uniform.

Tool Count3/5

With only two tools, the server feels minimal but coherent for its narrow purpose. It is on the thin edge but not overly sparse for a single-function preflight service.

Completeness4/5

The core workflow is covered: check a URL for the best route and then provide feedback on the outcome. No obvious dead ends, though additional tools like a history or stats view could be considered but aren't essential.