Skip to main content
Glama

Rename a file or change its expiry

update_file
Idempotent

Rename a file, or change when it is deleted: expires_in_days from now, keep (never deleted by the retention policy), or use_policy (follow the organization's retention policy again).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "update_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe file's id.
keepNotrue: keep it whatever the policy says.
nameNoA new name: a relative path.
use_policyNotrue: drop its own expiry and keep flag, and follow the retention policy.
expires_in_daysNoDelete the file this many days from now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare non-read-only, idempotent, non-destructive behavior, so the description only needs to add context. It does add real meaning for the lifecycle effects ('never deleted by the retention policy', 'follow the organization's retention policy again'), but it never says whether keep/use_policy/expires_in_days are mutually exclusive or what happens if several are supplied, nor what the call returns.

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?

A single front-loaded sentence that names the resource first and then enumerates the three expiry modes inline. No filler or redundancy.

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?

With full schema coverage and annotations covering the safety profile, the definition is nearly sufficient for a 5-parameter mutation tool. The remaining gap is the semantics of combining parameters (e.g., name together with keep) and confirmation of the resulting file state.

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 baseline is 3; the description goes slightly beyond by framing expires_in_days as 'from now' and by explaining keep and use_policy as lifecycle overrides rather than bare booleans. It still leaves the interaction between name and the expiry parameters undefined.

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+resource ('Rename a file') plus a second capability ('change when it is deleted'), and the title reinforces the split. It does not explicitly differentiate itself from delete_file, which is the nearest-looking sibling, so an agent must infer that this schedules deletion rather than performing it.

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

Usage Guidelines3/5

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

The three expiry modes (expires_in_days, keep, use_policy) give clear context for choosing among the write options, but there is no guidance on when to prefer this tool over delete_file for removal, and no exclusion or prerequisite stated.

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