Skip to main content
Glama

Keep an entry whose Wikidata item was deleted, still linked

keep_wikidata_deleted_entry
DestructiveIdempotent

Deleted on Wikidata’s “Keep, still linked” on an entry in “To review”: takes it off that list and leaves it exactly as it is, on its deleted item, with its notice. The sync still reads the item, so if Wikidata restores it the entry syncs again by itself (and the decision ends); with its QID it is never offered as a new Wikidata item; if Wikidata deletes the item again later, it comes back to “To review”. reason is recorded with the decision. With undo: true, “Put back to To review” on an entry in “Kept, still linked”. Audited. Dry run by default.

Input Schema

NameRequiredDescriptionDefault
undoNoPut it back to “To review” instead.
entryYesThe entry: its VHID (11 digits), its short name (as in verifiedhandles.org/<short>), or its Wikidata QID (Q42).
reasonNoWhy it is kept (optional; not with undo).
dry_runNotrue (the default): write nothing — show the change and the exact request it would send. false: make the change.

Output Schema

NameRequiredDescriptionDefault
noteNoA dry run: what to do next to make the change, in words.
resultNoA real run: the route’s own answer, where the tool adds facts of its own beside it.
confirmNoA dry run of a change that needs it: the exact target to send back as `confirm` with dry_run: false.
dry_runNotrue: a dry run, which wrote nothing. Absent from a real run.
replayedNoA real run with an idempotency_key already used for this change: the first call’s answer, given back; nothing was written now.
would_sendNoA dry run: the exact request the real run would send (`method`, `path`, any `headers` such as an Idempotency-Key, and its `body`, `form` or `query`), or the requests, in order.
may_edit_liveNoA dry run of a live edit: whether this key’s account may edit this entry live.
refused_becauseNoA dry run the real run would be refused for: why, in words.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

With readOnlyHint=false, destructiveHint=true, idempotentHint=true and openWorldHint=false already declared, the description still adds real context: the sync keeps reading the item so the entry re-syncs automatically if Wikidata restores it, the QID prevents re-offering as a new item, re-deletion returns it to "To review", and the action is audited. It doesn't reconcile the apparent tension between "leaves it exactly as it is" and destructiveHint=true, nor explain what auditing entails, so it stops short of 5.

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?

The main effect and the alternative path are front-loaded, followed by consequences, then undo, audit and dry-run in a tight single paragraph with no filler. Dense nesting of quoted UI labels makes it heavier reading than it needs to be, but every clause carries information.

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

Completeness5/5

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

For a state-machine workflow tool with an output schema and full annotation coverage, the description covers the transitions, the automatic re-sync consequence, the undo path, and the dry-run default. Nothing an agent would need to invoke it correctly in the review workflow is missing.

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, but the description genuinely adds meaning: it clarifies what undo actually targets (an entry in "Kept, still linked", reverting to "To review") and that reason is recorded with the decision record, beyond the schema's terse 'why it is kept'. The dry_run default is restated rather than expanded.

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?

It states a specific verb and resource (keep an entry whose Wikidata item was deleted) and the concrete effect: removes it from the "To review" list while leaving the entry linked to its deleted item. The mapping to the UI action "Keep, still linked" separates it from the sibling delete_wikidata_deleted_entry and restore-style tools. The jargon-laden opening sentence slightly obscures the plain statement of purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives the exact applicability conditions: an entry sitting in "To review" because its Wikidata item was deleted, plus the inverse state ("Kept, still linked") required for undo. It does not explicitly name a sibling tool to prefer instead, but the state-machine framing makes the when-to-use boundary inferable.

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.