Skip to main content
Glama

staleness-policy

Show resolved staleness windows and provenance for every ProductFlow artifact, so you can explain why a robot is marked stale or review effective windows before re-running.

Instructions

Show the resolved staleness windows (in days) for every ProductFlow artifact.

Resolution order (highest precedence wins):

  1. Per-product override — products//staleness-overrides.json

  2. Per-persona override — profiles//staleness-overrides.json

  3. Project policy — config/staleness-policy.json

  4. Compiled-in defaults

Each entry shows: windowDays, phase, provenanceSource (which layer set this value).

Use this tool to explain to the PM why a robot is marked stale, or to review the current effective windows before recommending whether to re-run.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "staleness-policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
personaSlugNoInclude to show persona-level overrides (Track 2)
productSlugNoInclude to show product-level overrides

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose material behavior: the four-layer resolution order with precedence, and that every entry reports windowDays, phase, and provenanceSource. What it leaves out is the operation's safety profile (read-only is only implied by 'Show'/'review') and any note on volume or pagination across 'every artifact'.

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?

The purpose is stated first, the precedence ladder is presented as a compact numbered list, and the output fields are enumerated in one line. The closing usage sentence is the only narrative text and it earns its place by supplying invocation context.

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 no annotations, so the description must stand in for both; enumerating windowDays, phase, and provenanceSource does most of that work. Minor gaps remain, such as whether artifacts with no window appear at all and whether results are exhaustive or bounded, but nothing critical to correct invocation is missing.

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 both optional parameters are already documented in the schema, which sets the baseline at 3. The description's resolution table indirectly explains why one would pass personaSlug or productSlug (to surface layers 2 and 1), but it never ties the override layers to the parameters explicitly, so the added meaning is modest.

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 opens with a specific verb and resource: 'Show the resolved staleness windows (in days) for every ProductFlow artifact.' That is far more precise than the bare name 'staleness-policy'. It does not, however, explicitly distinguish itself from the sibling 'freshness-check', which an agent would plausibly weigh against this tool.

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 two concrete usage contexts: explaining to the PM why a robot is marked stale, and reviewing effective windows before recommending a re-run. That is clear framing for when to reach for it, but no exclusions or named alternatives are offered, so the agent must infer that freshness-check is not the same query.

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