Skip to main content
Glama

Source Freshness / Result TTL

freshness
Read-onlyIdempotent

Source Freshness / Result TTL: how long can your agent reuse a result before paying to fetch it again? The source's own Last-Modified, ETag and Cache-Control + a reuse window by data kind (price, quote, hours, weather, news, stock, crypto, business_facts, terms, docs, filing, profile, search) + how to revalidate cheaply (304). By OMENZ. (MCP calls run in AYNE, the free playzone; production: GET https://www.omenz.org/api/tollbooth/v1/freshness, $0.002 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": "freshness"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesfull https URL to check
kindNokind

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / kind / description
      Added value: +"kind"
    • addedInput schema / properties / url / description
      Added value: +"full https URL to check"
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so the safety profile is covered. The description adds real behavior beyond that: it returns the source's Last-Modified, ETag and Cache-Control, computes a reuse window keyed by data kind, and supports cheap revalidation via 304. It also discloses the deployment split (free playzone vs $0.002 x402 production endpoint), which is useful cost context, though the exact response shape (seconds? boolean? header echo?) is never stated.

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 first clause is well front-loaded with purpose, but the single run-on sentence stacks the kind list, the revalidation method, an author credit, a playzone note, and a URL plus price. The publisher tag and full endpoint URL do not help tool selection and could be moved to secondary documentation.

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 no output schema, the description carries the burden of explaining returns, and it does partially: cache headers, a per-kind reuse window, and a cheap revalidation path. That is adequate for a two-parameter read-only tool. The gap is precision — an agent still cannot predict whether it receives a TTL in seconds, a stale/not-stale verdict, or the revalidation request to issue.

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 add meaning for `kind` by enumerating the accepted data kinds (price, quote, hours, weather, news, stock, crypto, business_facts, terms, docs, filing, profile, search) — genuinely useful since the schema only says 'kind' with no enum. However, the enumeration is buried in prose rather than tied explicitly to the parameter, and nothing explains how `kind` alters the returned window or what happens if it's omitted.

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 concrete resource and computation: the source's Last-Modified, ETag, Cache-Control plus a reuse window, producing a TTL for a given URL. An agent can tell this is a cache-freshness check rather than a fetch. It loses a point because the core statement is wrapped in marketing framing ('how long can your agent reuse a result before paying') and a publisher/endpoint tail that dilute the verb.

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 — 'before paying to fetch it again' suggests calling this prior to a billable fetch, and 'how to revalidate cheaply (304)' hints at the follow-up path. There is no explicit when-to-use/when-not, no prerequisite, and no sibling alternative named (e.g., quote vs freshness) even though the catalog contains overlapping lookup tools.

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