Skip to main content
Glama

Restore text

restore
Read-onlyIdempotent

Replaces Gupt tokens in text with original values from the server-side vault, revealing sensitive data in the conversation. Use the file-writing alternative to save results to disk instead.

Instructions

Put the original values back into text. This reveals them in the conversation; prefer restore_file to write the result to disk.

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": {
      "text": "<text>",
      "session_id": "<session_id>"
    },
    "name": "restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText containing Gupt tokens
session_idYesSession that produced the tokens

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds a genuinely non-obvious trait: the restored values become visible in the conversation, which is a disclosure/exposure consequence an agent must weigh before calling. It does not cover failure behavior (invalid or foreign tokens), which keeps it at 4.

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, zero filler, with the action stated first and the routing constraint second. Every clause carries information the agent needs.

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 rich annotations, full schema coverage and an output schema, the description needs only to state purpose and placement of results, which it does. Minor gap: no mention of what happens when tokens are invalid or the session_id does not match, which matters for a restore operation.

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% and both parameters (text containing Gupt tokens, session that produced them) are documented there. The description adds no syntax, format, or matching semantics beyond the schema, so the baseline of 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: put original values back into text containing Gupt tokens, i.e. de-tokenization. It also names the sibling it is not (restore_file), so the agent can distinguish the in-conversation variant from the write-to-disk variant without opening a schema. Slightly abstract phrasing ('original values') keeps it from a 5.

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

Usage Guidelines5/5

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

Explicitly gives the selecting condition: this tool reveals values in the conversation, so prefer restore_file when the result should go to disk. That is a direct when-to-use-this-vs-alternative rule, matching the strongest routing pattern in the calibration set.

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