Skip to main content
Glama

locus_restore

Restore a Locus store from a .tar.gz snapshot archive to a target path, with optional overwrite to replace an existing store.

Instructions

Restore a Locus store from a snapshot archive. Extracts to store_path (default: .locus-restored). Use overwrite=true to replace an existing store.

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": {
      "snapshot_path": "<snapshot_path>"
    },
    "name": "locus_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
overwriteNo
store_pathNo.locus-restored
snapshot_pathYesPath to the .tar.gz archive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the destructive implication of overwrite ('replace an existing store') plus the extraction destination. It leaves unstated whether overwrite is required for a non-empty target, whether a failed extraction leaves a partial store, and whether the operation needs permissions or exclusive store access.

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?

Three short sentences, purpose front-loaded, then destination and the one behaviorally important flag. No filler and nothing buried.

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?

For a mutation tool with no annotations, no output schema, and low parameter coverage, the definition is serviceable but thin: it does not say what is returned, how an existing store at store_path is treated when overwrite is false, or what errors look like. An agent could call it, but not predict the outcome confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% (only snapshot_path is described, as '.tar.gz archive'). The description adds real meaning for overwrite ('replace an existing store'), but store_path is merely restated with its schema default rather than explained as the extraction root, and snapshot_path's accepted format is repeated from the schema. With most of the surface undocumented, two of three parameters still lack semantic depth.

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: 'Restore a Locus store from a snapshot archive', which is clearly the inverse of an export-style operation and is unambiguous on its own. It does not name the counterpart sibling (e.g. locus_export_kg) or otherwise differentiate itself from the other store-mutating tools, so it stops short of 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 Guidelines3/5

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

It gives one concrete usage rule - 'Use overwrite=true to replace an existing store' - which tells the agent when the flag is appropriate. However, it never states when a restore should be chosen over other store-building paths (indexing, ingest, export) or what preconditions must hold before restoring.

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