Skip to main content
Glama

add_block_id

Assigns a ^block-id to a paragraph or list item by line number or text so you can link or embed it, then returns the ready-to-use link.

Instructions

Give a paragraph/list item a ^block-id (found by line number or by text) so it can be linked or embedded. Returns the ready-to-use link.

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": {
      "file": "<file>"
    },
    "name": "add_block_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoDefault: random 6 chars
fileYesNote path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]]
lineNo
textNoText on the target line
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already establish that this is a non-destructive mutation with idempotentHint false. The description adds that the tool returns a ready-to-use link, which is useful, but it does not explain what happens if the target block already has an ID or how repeated calls behave beyond the annotation.

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?

The description is two tight sentences with no wasted wording. The mutation purpose and return value are front-loaded and easy to scan.

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?

For a five-parameter mutation tool, the description covers the core operation, targeting method, and return value, while annotations and schema cover most remaining structure. Minor gaps remain around duplicate-ID behavior and matching ambiguity, but the definition is largely sufficient for an agent to call it correctly.

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 description coverage is high, so the schema already documents most parameters. The description adds meaningful targeting semantics by indicating the block can be found either by line number or by text, clarifying the role of those optional parameters beyond their individual schema entries.

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?

The description states a specific action and resource: giving a paragraph or list item a ^block-id. It also explains the outcome, linking or embedding, but does not explicitly distinguish this from sibling tools such as update_block or read_block.

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?

Usage is implied by the purpose: add a block ID when the block needs to be linked or embedded. There is no explicit guidance on when to use this versus alternatives, nor any exclusions or prerequisites.

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