Skip to main content
Glama

MoneyTools x402 agent toolkit

Cache-Control header parser

cache_control_parse
Read-onlyIdempotent

Parse a Cache-Control header into structured directives (max-age, no-store, immutable...) and optionally estimate remaining freshness from Age or Date. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]

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": {
      "header": "<header>"
    },
    "name": "cache_control_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoAge header seconds
dateNoDate header (HTTP date or ISO)
etagNooptional ETag to echo
headerYesCache-Control header value

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely non-structured behavioral facts: a free tier of 10 calls/day and paid access via x402 (params._meta["x402/payment"] or HTTP) or X-API-Key credits, which an agent must know before calling. It does not address error or malformed-header behavior, keeping it short of a 5.

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?

Purpose is front-loaded in the first clause, optional behavior second, and commercial terms last where they belong. Every sentence carries information; the only marginal element is the '[served by ...]' provenance tag, which is short enough not to be wasteful.

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 an output schema present, return values need not be explained, and the definition covers purpose, optional inputs, and access/payment mechanics for a low-complexity single-purpose parser. Minor gap: no note on how malformed headers are handled, which matters slightly for a parsing tool.

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%, so the baseline is 3, but the description goes further by explaining that age and date exist to 'estimate remaining freshness' — clarifying how those params combine rather than just what they hold. It does not clarify the etag echo behavior, which the schema itself only labels 'optional ETag to echo'.

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 ('Parse a Cache-Control header into structured directives') and enumerates representative outputs (max-age, no-store, immutable). The resource is narrow enough that an agent can distinguish it from other parsers such as duration_parse or http_link_parse 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 clause 'optionally estimate remaining freshness from Age or Date' tells the agent when to supply the optional params, which is useful conditional guidance. However, there is no explicit when-not guidance and no named alternative for related header-parsing or HTTP-inspection tasks, so the routing signal is only implied.

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