Skip to main content
Glama

Set the retention policy

set_storage_policy
DestructiveIdempotent

Set how long the organization keeps its storage: output_file_days (files runs save), upload_file_days (uploaded files) and state_days (state entries, counted from their last write), each 1 to 3650 days, or null to keep them; a field you leave out keeps its current value. It applies to what is stored now as well as later: anything older is deleted within minutes. A file's own expiry or keep setting (update_file) and a state entry's ttl_seconds take precedence. Needs an administrator key.

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": "set_storage_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
state_daysNoDelete state entries this many days after they were last written.
output_file_daysNoDelete run output files this many days after they were saved.
upload_file_daysNoDelete uploaded files this many days after they were uploaded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds the crucial consequences beyond that: existing data older than the new threshold is deleted within minutes, omitted fields retain their current values, and precedence rules route exceptions to per-file and per-state settings.

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?

Front-loads the purpose, then the semantics, then the destructive side effect and permission requirement in a logical order. It is dense and reads as a long run-on sentence, but nearly every clause carries actionable information.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, retroactive, admin-gated mutation with no output schema, the description covers what is affected, when the effect lands, how partial updates behave, what overrides it, and what credentials are needed — nothing material an agent needs is missing.

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 three parameters are already documented; the description still adds meaning the schema does not carry — state_days is counted from last write, values range 1 to 3650, null means keep, and an omitted field is a no-op rather than a reset.

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 ('Set how long the organization keeps its storage') and immediately enumerates the three policy fields it governs, so an agent can distinguish it from siblings like update_file or set_state whose per-item lifetimes it explicitly defers to.

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?

Gives clear functional context: it applies retroactively, per-item settings (update_file expiry/keep, state ttl_seconds) take precedence, and an administrator key is required. It does not name a read counterpart like get_storage for inspection, but the conditions for correct use are otherwise explicit.

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