Skip to main content
Glama

Lilia Editor

Add a section

add_section

Add a section heading: level 1 is a \section, 2 a \subsection, 3 a \subsubsection. After a given block, or at the end. Returns the new block id; add the section's text after it with paste_content or add_block. To undo it, give the reply's undo.versionId to restore_version.

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": {
      "documentId": "<documentId>",
      "title": "<title>"
    },
    "name": "add_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoA label to refer to it, e.g. sec:related. Optional.
levelNo1 section (default), 2 subsection, 3 subsubsection.
titleYesThe section's title, e.g. "Related work".
afterIdNoInsert after this block id; omit to add at the end.
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing the return value (the new block id), the placement side effect, and a concrete undo path via undo.versionId into restore_version. With annotations already declaring non-read-only and non-destructive, this adds the operationally important context about what an agent must do next. Minor gap: no statement about failure modes or invalid afterId.

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?

Three short sentences, each carrying distinct information: heading semantics, placement, return value plus follow-up tools, and undo. No filler and the core action is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the full lifecycle an agent needs for a mutation tool with no output schema: what it creates, where it lands, what it returns, how to add content after it, and how to undo. Nothing material is missing given the complete schema.

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 100%, and the description's level-to-command mapping and "after a given block, or at the end" wording largely restate what the schema already documents for level and afterId. It adds no new semantics for label, title, or documentId, so the baseline 3 applies.

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 a section heading") and immediately clarifies the level mapping to LaTeX commands, which distinguishes it from the sibling add_block (a generic block adder). An agent can tell exactly what this produces without opening the schema.

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

Usage Guidelines5/5

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

Routes the agent explicitly: use this for the heading, then use paste_content or add_block for the section's text, and use restore_version with the returned undo.versionId to reverse it. Placement rules (after a given block, or at the end) are stated rather than inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources