Skip to main content
Glama

Check sub-pages survive a refresh

check_routes

Detect single-page-app route errors by opening internal links directly, verifying refresh behavior, and confirming unknown URLs return a real 404.

Instructions

Open a site's internal links directly, the way a refresh, bookmark or shared link does. Catches the single-page-app 404 (works when clicked, breaks on refresh) and names the host-specific fix, e.g. the vercel.json rewrite. Also checks that made-up URLs return a real 404.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe page to check: a live URL, a preview deployment, or a local dev server like http://localhost:5173
pathsNoExtra paths to open directly, e.g. ["/about", "/pricing"]. Use this for client-rendered apps whose links are not in the HTML.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses that the tool opens links, detects SPA refresh failures, names host-specific fixes, and validates 404 behavior. This is meaningful beyond what the schema shows, though it does not detail output formatting or side effects.

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 dense but efficient, front-loading the core purpose in the opening sentence and adding valuable capabilities without fluff. Every clause contributes useful information.

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 two-parameter tool with fully documented schema and no output schema, the description gives enough context for an agent to select and invoke it correctly. It could more explicitly state what output format to expect, but the behavioral purpose is well covered.

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 100%, so the baseline is 3. The description does not add parameter-specific detail beyond the schema, which already explains URL, live/preview/local usage, and optional extra paths for client-rendered apps.

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 uses specific verbs and objects: it opens internal links directly, catches single-page-app 404s, names host-specific fixes, and checks that made-up URLs return real 404s. This clearly distinguishes check_routes from generic link/preview-related sibling tools.

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 gives strong context: use this when needing to verify that internal routes survive refresh, bookmarks, or shared links, especially for SPAs. It does not explicitly name alternatives or when-not-to-use scenarios, but the use case is clear enough.

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