Skip to main content
Glama

set_retention_policy

DestructiveIdempotent

Set workspace retention in days for messages, events, finished deliveries, and unreferenced media, plus media quota; omit a kind to inherit instance limits, or clear the policy with no arguments.

Instructions

Replace this workspace's own retention for its messages, events, finished deliveries and unreferenced media, in days (1 to 3650 each), and its media quota in bytes. A workspace may keep rows for less time than the instance does, never longer, and hold less media, never more: a value above the instance's is refused. Omit or null a kind to keep it as long as the instance does; no arguments clears the policy. Old messages are erased with their embeddings and content keys. A workspace under legal hold loses nothing whatever its policy says. Requires token:admin.

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_retention_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
media_daysNodays to keep an attachment, screenshot or recording once nothing in the workspace references it; null/omit = as long as the instance
events_daysNodays to keep event-log rows; null/omit = as long as the instance
messages_daysNodays to keep messages; null/omit = as long as the instance (forever)
deliveries_daysNodays to keep finished deliveries; null/omit = as long as the instance
media_quota_bytesNobytes of attachments, screenshots and recordings the workspace may hold; null/omit = the instance's quota

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive=true and idempotent=true, yet the description adds real substance beyond them: old messages are erased along with their embeddings and content keys, legal-hold workspaces are exempt regardless of policy, and the call requires token:admin. This tells the agent both what is destroyed and what authorization is needed.

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?

It is front-loaded with the operation and its scope, then layers the constraints, side effects, and auth requirement in a compact sequence. The sentences are dense and clause-heavy, but essentially every clause carries operational information, so little is wasted.

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 five-parameter mutation with no output schema, the description covers the important gaps: allowed ranges, relative-to-instance ceilings, null/reset behavior, deletion side effects, legal-hold exemption, and the required admin token. An agent has enough to call it correctly and safely.

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 baseline is 3, but the description adds genuinely new semantics: the upper bound is effectively the instance's own value (not just 3650), omission/null means 'inherit the instance', and an empty call resets everything. That supplies meaning the schema alone does not convey.

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 opens with a specific verb ('Replace') and the exact resource ('this workspace's own retention for its messages, events, finished deliveries and unreferenced media'), plus the media quota. It scopes the operation to the workspace level, so an agent can distinguish it from get_retention_policy and from other set_* siblings without opening the schema.

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 states clear operating rules: values above the instance's are refused, omitted/null kinds inherit the instance default, and no arguments clears the policy entirely. It does not explicitly point at get_retention_policy for inspecting current or instance-level values, but the constraints make the surrounding workflow inferable.

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