Skip to main content
Glama

generate_moc

Generates a Map of Contents note for a folder, listing all notes with their tags and first paragraph. Use it to organize and navigate vault content.

Instructions

Generate a Map of Contents (MOC) note for a folder, listing all notes with their tags and first paragraph.

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": {
      "folder": "<folder>"
    },
    "name": "generate_moc"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderYesVault-relative folder to generate the MOC for.
destinationNoVault-relative path to write the MOC note. Omit to return without saving.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses the generated content but not that supplying 'destination' causes a file write, whether an existing note there is overwritten, whether traversal is recursive, or what the return looks like when nothing is saved.

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?

A single front-loaded sentence defining the artifact first and its contents second, with no filler. Every clause contributes information.

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?

For a two-parameter tool with a fully documented schema and no output schema, the description covers purpose and output content adequately. It falls short on the write path (overwrite behavior, recursion depth, result when destination is omitted), which matters given the absence of annotations.

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 both parameters are already documented upstream and the baseline is 3. The description adds only indirect meaning (that a folder is scanned for notes, producing tags and first paragraphs) and no extra syntax or format detail.

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?

Specific verb ('Generate') plus a named artifact ('Map of Contents (MOC) note') scoped to a folder, with the note contents spelled out (tags and first paragraph). It does not, however, distinguish itself from near-neighbors like generate_summary_note or generate_weekly_review, which also produce derived notes.

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

Usage Guidelines2/5

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

The description states what is produced but never says when to prefer this over generate_summary_note, extract_concepts, or get_hub_notes, nor does it state prerequisites such as the folder having to exist. The only usage-adjacent information (omit destination to return without saving) lives in the schema, not the description.

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