Skip to main content
Glama

generate_moc

Create or preview a Map of Content note that links all notes in a folder, tag, or glob match, grouped by subfolder or first letter.

Instructions

Create (or preview) a Map of Content note linking every note in a folder, with a tag, or matching a glob — grouped by subfolder or by first letter.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_moc"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
globNo
titleNo
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
folderNoLimit to this folder (vault-relative)
outputNoNote to write (omit to just return the Markdown)
group_byNo
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare non-read-only, non-destructive, non-idempotent, and the description usefully adds that the tool can be run in a preview mode that returns Markdown without writing. It does not disclose overwrite semantics or what happens when selectors are combined, but the core behavioral profile is clear and consistent.

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 that packs selection scopes and grouping modes without filler. The em-dash split cleanly separates what is linked from how it is grouped.

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 an 8-parameter generator with no output schema, the description covers the essential identity but omits the default title, overwrite behavior, and the return shape of preview mode. Annotations carry the safety profile, so the remaining gaps are moderate rather than fatal.

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 only 38%, so the description must compensate; it does meaningfully cover folder, tag, glob, group_by, and output (preview). However, `title`, `overwrite`, and whether multiple selectors are OR-ed or AND-ed are left unexplained, so meaningful gaps remain for 8 parameters.

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?

States a specific verb (Create) and resource (Map of Content note) plus its three selection scopes (folder, tag, glob) and two grouping modes. An agent can tell what it produces without opening the schema. It doesn't name a sibling alternative, but the purpose is unambiguous.

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?

The parenthetical '(or preview)' implies a dry-run mode, but the mechanism is only spelled out in the schema's `output` description. There is no explicit when-to-use versus when-not guidance, e.g. when a MOC is preferable to search_calls-style listing or export_note.

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

Deploy Server

Other Tools