Skip to main content
Glama

Check Retention Expired

check_retention_expired
Read-onlyIdempotent

Check whether data retention has expired by comparing accessedAt against maxRetentionMs and applying the TTL policy.

Instructions

Check if data retention has expired based on TTL policy.

Input Schema

NameRequiredDescriptionDefault
accessTypeNo
accessedAtYesISO timestamp of when data was accessed
maxRetentionMsYesMax retention in ms (null = no limit)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv5.0.2
    • removedInput schema / properties / maxRetentionMs / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / maxRetentionMs / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  2. Changed4 schema fields changedv4.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / maxRetentionMs / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / maxRetentionMs / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
  3. Addedv2.8.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds only the decision basis (TTL policy) and says nothing about boundary behavior such as how an expired result is determined or how the null max-retention case is treated — mild added value against a low bar.

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?

A single front-loaded sentence with no filler, which is efficient. It is arguably too terse given the surrounding gaps, but there is no wasted prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 should clarify the return value and the significance of the null retention case, and it does neither. Annotations cover the safety profile and the schema covers most inputs, so the description is adequate but leaves an agent guessing about the result shape.

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 coverage is 67%: accessedAt and maxRetentionMs are described in the schema, but the accessType enum (ephemeral/persistent) has no description anywhere. The description contributes no parameter-level meaning and does not compensate for the undocumented enum, though it does not mislead either.

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?

States a specific verb (check) and resource (data retention expiry) and names the decision basis (TTL policy), so the agent can tell what the tool computes. It does not differentiate itself from the cluster of adjacent checkers like validate_temporal_rights or is_evidence_fresh, which is why it stops short of a 5.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance, no prerequisites, and no exclusions relative to the many sibling check_* tools. The usage is only implied by the tool name; nothing tells the agent when retention checking is the right call versus a temporal-rights or freshness check.

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

Deploy Server

Other Tools