Skip to main content
Glama

memory_index_split

Destructive

Split a Markdown note into routed topic documents losslessly. Preview triggers and line maps, then apply to write topics, add INDEX routes, back up the original, and replace the source with a notice.

Instructions

Split one Markdown note into routed topic documents, losslessly.

Preview by default: apply=false reports every topic trigger and the complete per-line map (original line -> topic document and topic line) while writing nothing. apply=true writes the topic documents, adds their INDEX routes, backs the original up in the review journal and replaces the source with a notice. Every original byte is preserved; there is no remove/clear operation and no summarization.

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

Input Schema

NameRequiredDescriptionDefault
applyNofalse (default) = preview only; true = write topics, add their routes and replace the source with a notice
documentYesvault-relative .md note to split
max_tokensNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description goes well beyond them: it states that preview writes nothing, that apply adds INDEX routes, backs the original up in the review journal, and replaces the source with a notice, and it asserts byte-level preservation. That is exactly the 'what gets modified and what safety net exists' information an agent needs before a destructive commit.

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 one-line purpose, then a paragraph contrasting preview and apply — good ordering. Slightly redundant, since the apply semantics repeat what the schema's apply description already says, but no sentence is filler.

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 return values need not be explained, and the annotations plus the description together cover the safety profile thoroughly. The only shortfall is the unaddressed `max_tokens` parameter for a tool claiming losslessness, where truncation behavior matters.

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 coverage is 67%, and the description adds real semantics for `apply` (what each mode actually does), which is valuable. However, `max_tokens` is undocumented in both the schema and the description, so the one uncovered parameter is left entirely opaque. Adequate differentiation of apply/document, but an unexplained truncation control on a lossless-split tool is a genuine gap.

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?

The first sentence names a specific verb, resource, and scope: 'Split one Markdown note into routed topic documents, losslessly.' The 'one note -> many topics' transformation is distinct from the read/check siblings (memory_index_check, memory_index_read), so an agent can route 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 Guidelines4/5

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

It lays out a clear default workflow: preview with apply=false first, then commit with apply=true, and explicitly states what each mode does. It also rules out adjacent intents ('no remove/clear operation and no summarization'), steering the agent elsewhere for those. It stops short of naming a specific alternative tool, so it is 4 rather than 5.

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