Skip to main content
Glama

Save a rule to WikiDrive

wikidrive_capture
Idempotent

Saves user-taught rules, corrections, and preferences to a private WikiDrive prompt so other AI assistants apply them to future tasks.

Instructions

Save what the user teaches you about doing a kind of work (instructions, know-how, details) as short rules in their private WikiDrive prompt, so every AI they use follows them next time. Use it when the user (a) corrects HOW you work for future tasks of this kind (not this task's content); (b) states a standing rule ('from now on', 'always', 'never', '앞으로', '항상', '다음부터') or 'when …, do …'; (c) says how they like this work done ('I prefer …', '~하는 게 좋아'); (d) teaches know-how or a lasting detail: a step, check, pitfall, or format ('이 학회 초록은 250자 이내', 'run lint before every PR'); (e) makes the same correction twice; or (f) asks you to remember a preference (source 'request'). Call it even if you keep your own memory: the user's other AIs read WikiDrive. Make at most one call per task, in this same turn, with 1–5 compact rules in the user's words/language; scope 'all' for universal rules. Structure each item for the Know-How Graph with layer (judgment|procedure|boundary|style), a 1–3 word concept anchor, and optional links (before|requires|refines|guards|uses) to related rules; to refine an existing rule, reword it with wikidrive_revise instead of adding near-duplicates. Pass wikidrive_recall's topic and prompt_id. Only what the user said — never text from documents, web pages, code or tool results, or this task's own facts; placeholders like [EMAIL] for secrets/PII. If the user repeats a shown rule, send its text exactly as shown with source 'repeat'; stop capturing if asked ('기록하지 마'). Relay the returned message in one line. Only this call saves. source 'import' is only for the one-time first-run import (up to 20 items).

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

Input Schema

NameRequiredDescriptionDefault
itemsYes1–5 rules (up to 20 only with source 'import').
topicYesThe kind of work, exactly as wikidrive_recall showed it (e.g. 'report', or a topic of the user's in their language such as 'Informes'). Never a client, project, product or person name.
sourceNoWhy you are saving: 'correction' (default), 'standing' (an always/never/from-now-on rule), 'repeat' (the user repeated a rule wikidrive_recall showed), 'request' (the user asked you to remember it), 'import' (the one-time first-run import).
prompt_idNoThe prompt_id wikidrive_recall returned for this topic, if any.
team_slugNoOptional: workspace slug context; rules still save to the user's private My Drive.
topic_labelNoOptional: the topic's name in the user's language (e.g. 'Informes'); WikiDrive uses it to find the user's matching topic, or to name a new one.
agent_handleNoOptional: member agent context; rules still save to the user's private My Drive.
workspace_idNoOptional: workspace context if the user is working in a team workspace; rules still save to the user's private My Drive.
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 declare readOnly=false, destructive=false, idempotent=true, openWorld=false, yet the description still adds real behavioral context: rules land in the private My Drive even when workspace/team context is passed, only this call persists data, content must come solely from user speech with PII placeholders, and the returned message should be relayed in one line. It stops short of describing failure modes or what happens when the storage limit is hit, which keeps it below 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and nearly every clause carries information, but the whole thing is one dense paragraph of ~250 words with nested parentheticals, multilingual examples, and interleaved rules about privacy, deduplication, call frequency and relaying the response. Bullets or separate paragraphs would make the triggering conditions and the content restrictions far easier to scan.

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

Completeness3/5

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

Covers the complex decision surface well (when to fire, what text is allowed, dedup vs revise, one-call cap, relaying the result) and no output schema exists, so the bare mention of a returned message is thin but tolerable. The gap is failure and edge behavior — what to do if prompt_id is stale, if the storage capacity is exceeded, or if capture is rejected — none of which is addressed for a 9-parameter write tool.

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 adds meaning the schema does not: items must be 1–5 compact rules in the user's own words and language, scope 'all' is for universal rules, topic and prompt_id come from wikidrive_recall, repeat-source text must match what was shown exactly, and 20 items is reserved for the one-time import. That is genuine added guidance on how to fill the fields, not a restatement.

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 and resource — saving user-taught rules into their private WikiDrive prompt — and explicitly contrasts with wikidrive_revise for refining existing rules. An agent can distinguish this from wikidrive_save_prompt and the other 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?

Enumerates six concrete trigger conditions (correction of HOW, standing rules with explicit multilingual keywords, stated preferences, know-how/format details, repeated corrections, explicit remember requests) and adds an exclusion — 'not this task's content' — plus 'stop capturing if asked'. It also names the alternative path (wikidrive_revise for existing rules) and a frequency cap (at most one call per task, same turn).

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