Skip to main content
Glama

Restore knowledge

restore_knowledge
Destructive

Put an archived knowledge file back where it was (the inverse of delete_knowledge): the body comes back byte for byte, front matter is re-serialized minus the two archive markers. Use when the operator asks to restore or un-archive a document, or when a document that code or a tool reads by its fixed path was archived by mistake (e.g. hub/config). Operator door only; refuses if a live file already sits at that path.

Routing: Operator says restore / un-archive / bring back a knowledge doc → this with its original slug (no _archived/ prefix). Something new to write → save_knowledge.

[write-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time. Call it on the first clear ask; the card is the yes — do not re-ask in chat.]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesThe original slug/path of the archived file, e.g. hub/config or inputs/loop_guard_create_tactic (no _archived/ prefix, no .md).
companyIdYesFreedomOS company id to act within (you must be a member). Required for company-scoped tools.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark this as destructive and not read-only, but the description adds substantial behavior: body restored byte-for-byte, front matter re-serialized without archive markers, refusal when a live file exists, and write-tier approval semantics. There is no contradiction between the description and annotations.

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?

The description is organized into three purposeful sections: core behavior, routing, and approval/operator guidance. Every sentence carries operational weight, with no filler or repetition of schema details.

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?

The description covers intent, routing, approval flow, failure conditions, and exact restoration semantics, which is almost everything needed to invoke correctly. With no output schema, a small gap remains: it does not describe the success response or confirmation the agent should expect.

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 coverage is 100%, and both slug and companyId are already documented with examples and constraints. The description reinforces the 'no _archived/ prefix' rule but does not add substantially new parameter-level meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('restore'), a specific resource ('archived knowledge file'), and the target location ('back where it was'). It also explicitly frames the tool as the inverse of delete_knowledge and names the routing alternative save_knowledge, making sibling differentiation clear.

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?

It gives explicit when-to-use conditions: operator asks to restore/un-archive, or a document read by a fixed path was archived by mistake. It also routes new writes to save_knowledge and notes that the tool is operator-only and refuses when a live file exists.

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