Skip to main content
Glama

quipu_set

Destructive

Atomically replaces every current value of an entity's predicate with a single new value in the default graph, preventing duplicate or empty-predicate states during updates.

Instructions

Atomically SET (entity, predicate) to exactly one value in the ROOT/default graph. Supplying a graph field is refused; named-graph facts are untouched. Retracts every current object on that predicate and asserts the new one in a single transaction. The supersede primitive — re-parenting (reports_to A -> B) is one call, with no empty-predicate window and no way to end up with two supervisors by forgetting the retract half. SINGLE-VALUE semantics: replaces ALL current objects; to add without removing, assert via quipu_knot.

Input Schema

NameRequiredDescriptionDefault
actorNoWho is performing the set
graphNoUnsupported: omit this field. This tool operates only on ROOT/default graph; use graph-scoped quipu_update for named graphs.
valueYesNew object value. A bare string is a literal; use {"iri": "..."} for an edge, or {"int"|"float"|"bool": ...} / {"value", "lang"|"datatype"}. A bare string aimed at an IRI-valued predicate is refused loudly.
entityYesIRI of the entity (must exist)
sourceNoProvenance source of the update.
predicateYesPredicate IRI to set (may be new)
timestampNoISO-8601 timestamp for the supersede

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.17.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the destructiveHint/readOnlyHint annotations by spelling out that every current object on the predicate is retracted and the new one asserted in a single transaction, with no intermediate empty-predicate state, plus that a supplied graph field is refused. Slight gap: it does not say what is returned (transaction id, prior values) or whether the retraction is recoverable, which matters for a destructive tool.

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?

Front-loaded with the core operation and scope, then atomicity, then the alternative. Dense and mostly earning its place, though the graph restriction is stated twice (description and schema) and the 'two supervisors' illustration, while useful, is the most expendable sentence.

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 a destructive, 7-parameter, no-output-schema mutation this covers scope, atomicity, destruction, typing and routing to siblings. Minor omissions remain: no mention of return payload or how to recover the superseded value, and no guidance on actor/source/timestamp beyond the schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds real semantics, notably that predicate is single-valued and value must be typed as a literal or {"iri"} with bare strings refused on IRI-valued predicates. It also reinforces the graph-field refusal. The rest of the parameter meaning is already in 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?

States a specific verb (SET), the exact resource tuple (entity, predicate) and the scope (ROOT/default graph only), and explicitly contrasts itself with quipu_knot (additive assert) and quipu_update (named-graph writes). An agent can pick this tool over its 70+ siblings without opening a schema.

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?

Gives a concrete use case (re-parenting reports_to A -> B), names the exclusion (named graphs belong to quipu_update) and names the alternative for the additive case (quipu_knot). When-to-use, when-not-to-use and the substitute are all present.

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