Skip to main content
Glama

quipu_retract

Destructive

Retract ROOT/default-graph facts for an entity, either all facts or those narrowed by predicate and value; use entity, predicate, and value together to remove one stray statement.

Instructions

Retract ROOT/default-graph facts for an entity: all of them, or narrowed by predicate and/or value. Supplying a graph field is refused; named-graph facts are untouched. Entity + predicate + value retracts exactly ONE (e,a,v) statement — use this to remove a stray edge instead of retracting a whole episode and rebuilding it.

Input Schema

NameRequiredDescriptionDefault
actorNoWho is performing the retraction
graphNoUnsupported: omit this field. This tool operates only on ROOT/default graph; use graph-scoped quipu_update for named graphs.
valueNoOptional: only retract facts with this object value. A bare string is a literal; use {"iri": "..."} for a reference, or {"int"|"float"|"bool": ...}. With entity + predicate this pins a single triple.
entityYesIRI of the entity to retract
sourceNoProvenance source of the retraction.
predicateNoOptional: only retract facts with this predicate IRI
timestampNoISO-8601 timestamp for the retraction
allow_orphanNoAllow identity facts to be removed from a still-referenced entity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.17.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description adds real behavioral detail on top: the graph field is actively refused, named-graph facts are left intact, and entity+predicate+value collapses to exactly one triple. It does not discuss irreversibility, what provenance/allow_orphan do to the removal, or what is returned, which keeps it from a 5.

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 tight sentences, front-loaded with scope, then the refusal constraint, then the precision use case. No filler and no restatement of the tool name; every clause carries actionable information.

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?

For an 8-parameter destructive mutation with no output schema, the description covers scope, the refused parameter, and narrowing semantics, which is most of what an agent needs. Gaps remain around irreversibility and the effect of allow_orphan/source/timestamp on the retraction, though the schema covers those fields individually.

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 the baseline is 3; every parameter including graph and value is already documented in the schema. The description's only semantic addition is the combinatorial rule that entity+predicate+value pins a single (e,a,v) statement, which the value field description largely repeats.

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?

Names a specific verb (retract) and resource (ROOT/default-graph facts for an entity) and immediately bounds scope: whole entity, or narrowed by predicate and/or value. It also distinguishes itself from episode-level retraction and from graph-scoped updates, so an agent can identify it among siblings like quipu_retract_episode and quipu_update without opening schemas.

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?

Provides explicit when-to-use ('use this to remove a stray edge instead of retracting a whole episode and rebuilding it') and a hard when-not ('Supplying a graph field is refused; named-graph facts are untouched'). The alternative path for named graphs is identified, leaving little to inference.

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

Deploy Server

Other Tools