Skip to main content
Glama

Undo or change a WikiDrive rule

wikidrive_revise
DestructiveIdempotent

Remove, undo, or reword saved rules in private WikiDrive prompts when a user cancels a save, asks to change a rule, or resolves a conflict; pass each rule exactly as shown.

Instructions

Remove, undo or reword rules in the user's private WikiDrive prompts. Use it when the user says 'undo' or '취소' after a save, asks to remove or change a saved rule, or reverses a rule wikidrive_recall showed; and when wikidrive_capture reports a conflict with a saved rule, to reword that rule with replace_with. Pass each line exactly as shown or as quoted in the save message, with the topic or prompt_id it belongs to. A request to stop recording is not a reason to call it. Afterwards tell the user the returned message in one line, in the user's language. Documents are undone with wikidrive_undo_doc.

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": {
      "items": "<items>"
    },
    "name": "wikidrive_revise"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes1–5 rules to remove or reword.
topicNoThe topic the rule belongs to, as wikidrive_recall or the save message showed it.
prompt_idNoThe prompt_id the rule belongs to, if known.
idempotency_keyNoOptional. A new random key (e.g. a UUID) for each call; reuse it only to retry the same call after an unclear result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description is consistent with that (remove/undo). Beyond the annotations it adds real context: it says what is modified (the user's private prompt rules), that rules must match exactly, how rewording differs from removal via replace_with, and a required post-call step (report the returned message in one line, in the user's language). It does not cover partial failure or what happens when a line fails to match.

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 purpose, then triggers, then non-triggers, then sibling routing, so a reader can stop early. It is dense but each sentence carries information; the closing sibling-routing line is compact and useful. Minor cost is that the post-call reporting instruction competes for attention with the call guidance.

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, no-output-schema tool, the definition covers purpose, triggers, exclusions, alternatives, and post-call communication, which is enough to call it correctly. Remaining gaps are edge behavior: what a partial match failure looks like and how to recover, which is only indirectly touched by the idempotency note in the schema.

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. The description reinforces how to fill `line` ('exactly as shown or as quoted in the save message') and how `replace_with` is used to reword instead of remove, but it adds little beyond the schema's own parameter descriptions and says nothing extra about `idempotency_key` beyond what the schema already specifies.

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?

Opens with specific verbs (remove, undo, reword) against a specific resource (rules in the user's private WikiDrive prompts). It also explicitly distinguishes itself from three siblings by naming them in context: wikidrive_undo_doc for documents, wikidrive_capture for conflicts, and wikidrive_recall as the source of the rules being reversed.

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 concrete trigger phrases ('undo', '취소' after a save), concrete rule-changing requests, the conflict flow triggered by wikidrive_capture, and an explicit non-trigger ('A request to stop recording is not a reason to call it'). The alternative for document reversal is named directly, so there is nothing left to infer.

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