Skip to main content
Glama

Check which review dates are overdue

check_freshness
Read-only

Classifies review dates as fresh, aging, or stale against a required as-of date and day thresholds, so you can identify time-sensitive records and the worst freshness level in a dataset.

Instructions

Classifies each supplied review date as fresh, aging or stale at the caller's required as-of date. The whole-day age must exceed a threshold to reach the next level. The dataset level is the worst record's level. This measures time since the supplied dates. It cannot tell whether a review happened or whether the data is accurate. As of 2026-08-02T12:00:00Z with thresholds of 14 and 45 days, a 2026-07-20 review is fresh at 13 days and a 2026-06-01 review is stale at 62 days.

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": {
      "records": "<records>",
      "config": "<config>",
      "now": "<now>"
    },
    "name": "check_freshness"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowYesRequired as-of date (YYYY-MM-DD at UTC midnight) or zoned ISO timestamp with seconds.
configYes
recordsYesRecords with review dates. An empty array has no dates to check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses nontrivial behavioural semantics: the boundary rule that age must strictly exceed a threshold to move to the next level, the aggregation rule that the dataset level is the worst record's level, and a worked example (13 days fresh under a 14-day threshold, 62 days stale under 45) that pins down inclusive and exclusive edges. Those are exactly the details an agent cannot infer from annotations and could easily get wrong.

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?

Six tight sentences, front-loaded with the core classification, then limits, then a concrete example that is genuinely load-bearing rather than filler. The example is slightly long, but every clause (levels, strict threshold, aggregation, scope caveat) carries information that changes how the tool is called or trusted.

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 partially compensates by stating that per-record levels are produced and that a dataset-level worst-case level is reported. The exact response shape, the returned id echo and handling of an empty records array are left to the schema notes, which is acceptable but not exhaustive for a tool with nested objects and no declared output contract.

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 67% and the description compensates well: the worked example binds the abstract "thresholds of 14 and 45 days" to warnAfterDays/staleAfterDays and shows how now drives the day-count computation. It does not explicitly discuss id echoing or the 10,000-record cap, so it adds real but not complete meaning beyond the schema.

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?

The description states a specific verb and resource ("classifies each supplied review date as fresh, aging or stale") at a caller-supplied as-of date, and then delimits what that measurement covers ("measures time since the supplied dates") so it stands apart from the accuracy, parity and provenance checks used by the sibling tools.

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

Usage Guidelines4/5

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

It gives clear scope guidance: it says what the tool measures and what it cannot answer (whether a review happened, whether the data is accurate), which steers the agent towards an accuracy/evidence check for those questions. It does not name a specific alternative tool for those cases, so it falls short of the explicit when-to-use/when-not pairing that earns a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.