Skip to main content
Glama
@shuliak-corp/sip1-mcp

@shuliak-corp/sip1-mcp

Restore RAM Twins & Save Atomic Document

sip_save_restored_document

Restores an AI-edited draft by replacing in-RAM NIST FF1 synthetic values with originals via LIFO unwrapping, then atomically writes the restored document to a local file.

Instructions

Detokenize an AI-edited draft by replacing in-RAM NIST FF1 synthetic twins back to original values via LIFO unwrapping and atomically write the restored document to the local filesystem.

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": {
      "aiDraftText": "<aiDraftText>"
    },
    "name": "sip_save_restored_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputPathNoTarget local output file path.
sourcePathNoOriginal source document path.
aiDraftTextYesPseudonymized draft text to restore.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.6.5

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=false, destructive=false, and openWorld=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the write is atomic, it targets the local filesystem only, and restoration depends on LIFO unwrapping of in-RAM twins, which explains the non-idempotent flag. It does not say what happens if the twins are gone or if outputPath already exists.

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?

A single front-loaded sentence with no filler, and the detokenize-then-write sequence is ordered correctly. It is dense with domain jargon (NIST FF1, synthetic twins, LIFO), which costs some readability but not accuracy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a mutating, state-dependent tool with no output schema and one required plus two optional parameters. The description covers the core mechanism but leaves open where the file goes when outputPath is omitted, what sourcePath is used for, and what failure looks like when twins are unavailable — gaps an agent would hit on a real call.

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 all three parameters are already documented in the schema. The description adds only indirect context (the draft being restored, the document written to the filesystem) and says nothing about how optional outputPath or sourcePath behave when omitted. Baseline 3 is appropriate when the schema carries the parameter detail.

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?

The description names specific verbs and resources: detokenize an AI-edited draft by reversing NIST FF1 synthetic twins, then atomically write the restored document to the local filesystem. That is far more specific than the tool name alone. It stops short of naming its inverse sibling (sip_pseudonymize_payload), so the round-trip pairing must be inferred.

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?

Usage is only implied: the tool is for drafts that were previously pseudonymized and then edited. There is no explicit statement of when to use this versus sip_pseudonymize_payload, and no prerequisite such as the twins still being resident in RAM, which the LIFO unwrapping clearly requires.

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