Skip to main content
Glama

memory_index_register

Idempotent

Add a trigger-to-document mapping to the always-loaded INDEX so agents know when to read a note. Registration is additive and idempotent, and duplicate mappings are a no-op.

Instructions

Add one trigger -> document mapping to the always-loaded INDEX.

Registration is opt-in, additive and idempotent: a duplicate mapping is a no-op. There is no remove/replace/delete operation. Returns the complete updated INDEX (never a subset).

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": {
      "trigger": "<trigger>",
      "document": "<document>"
    },
    "name": "memory_index_register"
  }
}

Input Schema

NameRequiredDescriptionDefault
triggerYeswhen to read the document
documentYesvault-relative path or note slug
max_tokensNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, and the description reinforces the duplicate no-op. It adds genuinely new constraints beyond the annotations: there is no remove/replace/delete operation at all, and the return is the complete INDEX rather than a subset. What it does not cover is whether registration overwrites a different document already bound to the same trigger.

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?

Four short clauses, front-loaded with the action and resource, then the behavioral constraints. No filler or restated name.

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?

An output schema exists, so the return value needn't be spelled out, and the description still usefully notes the full-INDEX return. The only meaningful gap is the unexplained max_tokens parameter, which could matter for large indexes.

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?

The 'trigger -> document' framing reinforces the two required parameters, whose semantics the schema already documents ('when to read the document', 'vault-relative path or note slug'). The third parameter, max_tokens, is undocumented in both schema and description, so the 67% coverage gap is not compensated for.

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: 'Add one `trigger -> document` mapping to the always-loaded INDEX.' The 'always-loaded' qualifier and the mapping shape make it clearly distinct from read/check/split siblings.

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

Usage Guidelines3/5

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

Says registration is 'opt-in, additive and idempotent' and that there is no remove/replace/delete path, which implies when it applies. But it never states when to prefer this over memory_index_check, memory_index_read or memory_index_split, nor any prerequisite (e.g., verifying the trigger is unused first).

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