Skip to main content
Glama

Update account data-retention policy

update_data_retention

Update the account data-retention policy for sandbox archives and optionally disable snapshots or monitoring for new sandboxes. Enabling requires the exact phrase delete archived sandbox data.

Instructions

Update account data-retention policy. Requires an interactive sandbox session; API keys and legacy permanent tokens are refused. Enabling requires the exact confirmation phrase delete archived sandbox data. Disabling affects future archives only and cannot cancel deletion operations already accepted.

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

Input Schema

NameRequiredDescriptionDefault
enabledNo
confirmationNoRequired when enabling and must exactly equal `delete archived sandbox data`.
snapshotsOffNoTurn snapshots off for every sandbox created from now on. Existing sandboxes keep their setting. While on, a create or fork that passes `snapshots: true` is refused with 409 `snapshots_off_for_account`.
monitoringOffNoTurn monitoring off for every sandbox created from now on. Existing sandboxes keep their setting. While on, a create or fork that passes `monitoring: true` is refused with 409 `monitoring_off_for_account`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true; the description adds genuinely non-obvious behavior: authentication mode restrictions and the fact that already-accepted deletion operations cannot be cancelled by disabling. The confirmation-phrase requirement is the kind of consequence detail annotations cannot express. It does not describe the response or what happens on a mismatched confirmation beyond the schema's const.

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?

Four short sentences, front-loaded with the action, then prerequisites, then the enabling requirement, then the disabling caveat. No filler and no repetition of the schema's per-parameter explanations.

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?

For a mutating account-level policy tool with annotations and no output schema, the description covers auth mode, the confirmation gate, and the irreversible-tail caveat, which is what an agent needs to avoid misuse. The main remaining gap is the absence of any pointer to get_data_retention for reading the current policy before changing it.

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 already 75%, and the two *Off flags carry their own detailed 409 semantics, so the schema does most of the work. The description adds only that enabling gated on the exact phrase and that disabling is forward-only, which is useful but largely restates the confirmation const. A baseline 3 fits given how much the schema already explains.

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 and resource: 'Update account data-retention policy.' That is more specific than the title alone and clearly distinguishes a mutation of the retention policy. It never names the read counterpart get_data_retention, so the agent must infer the read/write split from the sibling name rather than from stated guidance.

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 a hard prerequisite ('Requires an interactive sandbox session; API keys and legacy permanent tokens are refused') and splits behavior by mode, so the agent knows enabling needs a confirmation phrase while disabling is safe-ish and forward-only. It stops short of explicitly routing to get_data_retention for inspection or stating when this call is unnecessary, so it misses a 5.

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