Skip to main content
Glama

http-cache-explain

HTTP cacheability, CORS and redirect-loop explainer — Explains from supplied response headers (and optionally the request's headers, a CORS request, and a redirect chain) whether a shared and a private HTTP cache may store the response (RFC 9111 section 3), its freshness lifetime and basis (s-maxage, max-age, Expires minus Date, or the 10% Last-Modified heuristic), Vary, invalid max-age or Expires, the CORS check and preflight outcome per the Fetch S

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": {
      "response": "<response>"
    },
    "name": "http-cache-explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
corsNo
requestNo
responseYes
redirectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: 'Explains from supplied response headers' makes clear this is a pure analysis of caller-provided data with no network access or mutation, and it cites the specific standard (RFC 9111 section 3) and heuristics used. Gaps remain on error behavior and what happens with incomplete or malformed header sets.

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

Conciseness3/5

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

The lead clause is well front-loaded and identifies the tool's domain immediately, but the rest is a single run-on sentence that packs freshness heuristics and CORS rules into one unbroken clause chain. It also cuts off mid-word ('per the Fetch S'), which leaves the definition visibly incomplete and loses information the agent may need.

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 tool with four nested input objects, no annotations and no output schema, the description does the necessary work by enumerating the results it returns (storability per cache type, freshness basis, Vary, invalid directives, CORS/preflight verdict, redirect loop). The severity of incompleteness is limited to the truncated CORS sentence rather than missing scope.

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?

Although reported coverage is 0%, the description itself imparts meaning to each top-level input group: the required response headers, optional request headers, an optional CORS request, and an optional redirect chain, and it ties each to the analysis it drives (Vary selection, CORS/preflight check, loop detection). It does not cover the constraints visible in the schema (GET/HEAD only, header/redirect item caps, status ranges), so it adds value but not complete semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb+resource: it explains HTTP cacheability, CORS check and redirect-loop behavior from supplied headers, and enumerates the concrete facts it produces (shared vs private storability, freshness lifetime and basis, Vary, invalid max-age/Expires, preflight outcome). That is far more specific than a restated title, and it implicitly separates the tool from unrelated siblings like dockerfile-cache-lint or cors-preflight by scoping to RFC 9111 caching semantics. It stops short of a 5 because it never names an alternative tool or states the boundary condition against cors-preflight.

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 only implied: the parenthetical that request headers, a CORS request and a redirect chain are optional signals tells an agent roughly what inputs matter, and 'from supplied response headers' implies no URL fetching. But there is no explicit when-to-use statement, no when-not-to-use, and no named alternative for the overlapping CORS case.

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