Skip to main content
Glama

web_cache_check

Read-only

HTTP caching audit (Cache-Control, CDN, ETag, 304) — Audit how a URL is cached: parses Cache-Control/Expires into browser and shared-cache TTLs, detects the CDN and its HIT/MISS status (Cloudflare, Fastly, CloudFront, Akamai, Vercel, Netlify, Azure), checks ETag/Last-Modified and actually sends a conditional request to confirm a 304, flags Vary problems, cacheable responses that set cookies, short TTLs on static or versioned assets, long browser TTLs on HTML and missing compression. Returns an A-F grade, score and fixes. Param: url= (page or asset). Price: $0.004 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "web_cache_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://registry.npmjs.org/left-pad

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive, open-world nature, so the description's added value is what matters: it discloses that the audit issues an extra conditional request to force a 304, that it identifies third-party infrastructure (CDN vendor), and that it returns an A-F grade plus fixes. The explicit cost disclosure ($0.004 USDC via x402 on Base) is valuable behavioral context an agent needs before calling. No timeout, failure, or retry behavior is mentioned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is one long sentence, but it is front-loaded with the tool's identity and ordered by increasing detail, so a reader can stop early. The CDN vendor list and the pricing tail are mildly padded, though the pricing detail is substantive rather than filler.

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?

With one required parameter, read-only annotations and no output schema, the description does the remaining work: it explains what is inspected, what is returned (grade, score, fixes), and what the call costs. It stops short of full completeness only because latency, error/blocked-response handling, and whether the target must be publicly reachable are unstated.

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 coverage is 100% for the single url parameter, so the baseline is 3. The description earns slightly more by clarifying that url may be a page or an asset, which matters because the audit applies different rules to HTML versus versioned static assets. It stops short of stating scheme requirements or redirect handling.

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?

A specific verb-plus-resource: 'HTTP caching audit' of a URL, immediately narrowed by the four signals it examines (Cache-Control, CDN, ETag, 304). The enumeration of what it parses, detects, verifies and grades makes it clearly distinguishable from nearby security checks such as security_csp_check or security_cookie_check.

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

Usage Guidelines3/5

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

Usage is implied by the subject matter — you call it on a URL whose caching headers you want audited — and 'url= (page or asset)' hints at both accepted targets. But nothing says when to prefer this over a general site audit or other sibling checks, and there are no exclusions or prerequisites beyond the price note.

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.

Resources