Skip to main content
Glama

Restore to a file

restore_file

Restores redacted real values from a session vault and writes them to disk without returning content, keeping sensitive identifiers out of the conversation.

Instructions

Restore real values and write the result to disk. The restored content is not returned, so the values never appear in the conversation.

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": {
      "session_id": "<session_id>",
      "output_path": "<output_path>"
    },
    "name": "restore_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoRedacted file to restore
textNoOr: redacted text to restore
overwriteNoAllow replacing an existing output file
session_idYesSession that produced the tokens
output_pathYesWhere to write the restored result

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false; the description usefully adds that output goes to disk and is withheld from the conversation, which is real behavior beyond the annotations. It says nothing about what happens when the target file exists or why idempotentHint is false, both of which matter for a write-to-disk operation.

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?

Two short sentences that front-load what the tool does and then justify the withholding of output. No filler, no repetition of the schema.

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?

An output schema exists, so return values need no explanation, and the description covers the distinctive trait (content goes to disk, not the transcript). What's missing is failure behavior on an existing output file, though that is partly implied by the schema's overwrite parameter.

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 description coverage is 100%, so path/text/session_id/output_path/overwrite are all documented in the schema itself. The description adds no meaning about parameter interaction (e.g. path vs text being alternatives, or the overwrite gate), so the baseline 3 applies.

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 concrete verb and resource ('Restore real values and write the result to disk') and adds the key differentiator that the values are not returned, which separates it from an in-conversation restore. It stops short of naming any sibling tool explicitly, so the discrimination is inferred rather than stated.

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 privacy rationale ('the values never appear in the conversation') implies when to pick this over a returning-restore variant, but there is no explicit when-to-use, when-not-to-use, or named alternative. The agent must infer the selection rule.

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