Skip to main content
Glama

HTTP Cache Freshness Check

http_cache_freshness
Read-onlyIdempotent

Work out whether a cached HTTP response is still fresh, per RFC 9111 (HTTP Caching). Send the response header text (Cache-Control, Expires, Date, Age, Last-Modified, ETag; a status line is read if present) and optionally now, response_time and request_time, the status code and whether the cache is private (a browser) or shared (a CDN or proxy). Get back the freshness lifetime and where it came from (s-maxage, max-age, Expires or the heuristic, flagged), the current age worked step by step, fresh or stale with the seconds left or over, whether the response may be stored and reused without revalidation, and the validators available. Nothing is fetched. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/http-cache-freshness). Not legal, tax or financial advice.

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": {
      "headers": "<headers>"
    },
    "name": "http_cache_freshness"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowNoThe time of the check (UTC, 2026-11-19T10:00:00Z or an IMF-fixdate). Default: the response time (the age when it arrived).
cacheNoprivate (a browser or a single user's client, default) or shared (a CDN, proxy or gateway: s-maxage and private apply).private
statusNoThe response status code, if no status line is in headers (default 200). It decides whether heuristic freshness is allowed.
headersYesThe response header lines as text, one 'Name: value' per line (an 'HTTP/1.1 200 OK' line first is read for the status). Only Cache-Control, Expires, Date, Age, Last-Modified, ETag and Pragma are read; other lines are ignored and never echoed.
request_timeNoWhen the request was sent. Default: the response time.
response_timeNoWhen the response was received. Default: the Date header (no network delay).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive/non-open-world, and the description reinforces this with 'Nothing is fetched. No model, no network, nothing you send is stored.' It adds practical operational facts the annotations lack: hourly rate limit, error shape (ok false with reason), signing key with a verification URL, and enumerated answer fields. Not a full 5 because the return values are listed but not explained in depth.

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?

Purpose is front-loaded in the first sentence and the rest is dense but information-bearing — answer fields, error modes, limits, signing. Some boilerplate ('Free', 'Not legal, tax or financial advice', 'No model') could be trimmed without loss, and the second sentence is a long run-on, which slightly hurts scanability.

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?

There is no output schema, and the description compensates by naming the answer fields (ok, verdict, result, rule, does_not, sources, observation, signature, verify) and the error behavior, so an agent knows what comes back. It stops short of describing field semantics or the output's structure in enough detail to parse results without first calling it.

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 all six parameters are already documented in the schema, including the private/shared enum and the now/response_time defaults; the description roughly restates that set. It does contribute the conceptual distinction 'private (a browser) or shared (a CDN or proxy)' but this is also in the schema, so the baseline 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?

States a specific verb and resource — 'Work out whether a cached HTTP response is still fresh, per RFC 9111' — which no sibling (security_headers_check, robots_txt_check, etc.) covers. The scope ('Send the response header text... Get back the freshness lifetime...') makes the tool's role unmistakable without opening the schema.

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?

The description implies usage by describing the inputs ('Send the response header text... and optionally now, response_time and request_time') and the RFC 9111 framing, and it rules out a network call with 'Nothing is fetched.' However, it never states when to prefer this over a sibling or when it does not apply (e.g., request-side caching analysis, cache invalidation), so guidance remains implicit.

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