Skip to main content
Glama

apa7_insert_blocks

Insert structured APA 7 content blocks—headings, tables, figures, references, and TOC—into an existing .docx at a chosen position, with automatic table and figure numbering.

Instructions

Inserta contenido en un .docx existente. where: end|start|before_references|after_paragraph (paragraph_index de apa7_read)|after_text (text). Numera Tabla/Figura a continuación. Bloques (type): title{text}; title_page{title,authors(texto|lista),affiliation,course,instructor,due_date,author_note(texto|lista; trabajo profesional)}; heading{level 1-5,text}; paragraph{text,indent?}; block_quote{text}; list{style:bullet|numbered,items[]}; table{title,header[],rows[][],note?}; figure{title,image_path|chart{type:bar|line|pie|scatter|hist,labels[],series[{name,values[]}],x_label?,y_label?},width_cm?,alt?,note?}; toc{levels?,title?}; list_of_tables; list_of_figures; references{entries[]}; page_break. En text: negrita, cursiva.

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_path": "<file_path>",
      "blocks": "<blocks>"
    },
    "name": "apa7_insert_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
whereNoend
blocksYes
profileNo
languageNo
file_pathYes
overwriteNo
output_pathNo
paragraph_indexNo
accept_tracked_changesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden, and it does disclose two useful traits: automatic sequential numbering of Table/Figura, and inline **bold**/*italic* markup inside text fields. It says nothing about how the existing file is treated (in-place edit vs output_path), what overwrite or accept_tracked_changes do, or whether the operation is reversible.

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?

Purpose is front-loaded in the first sentence and the rest is a compact, scannable grammar of anchors and block types with no filler prose. The semicolon-dense notation is terse to the point of being hard to parse on first read, but nothing is wasted.

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?

This is a 10-parameter mutation tool with no annotations and no output schema, so it should say more. The hardest part, the blocks payload, is covered thoroughly, but the file-handling and tracked-changes parameters are left entirely to inference, leaving an agent unsure how the write is applied to disk.

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 0% and blocks is a free-form object array, so the description's block-type schema (title, title_page, heading, table, figure with chart sub-schema, etc.) is genuinely load-bearing and well specified. However, of the 10 parameters it only explains where and paragraph_index; file_path, overwrite, output_path, profile, language and accept_tracked_changes get no semantic treatment at all.

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 opens with a specific verb and resource: insert content into an existing .docx. That cleanly separates it from a document-building tool, and the enumerated block types make the scope concrete. It stops short of naming any sibling, so the differentiation is implied rather than stated.

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 'where' enumeration (end|start|before_references|after_paragraph|after_text) and the pointer to apa7_read for paragraph_index give real placement guidance. But there is no statement of when to reach for this tool versus apa7_build_document or apa7_replace_text, and no preconditions such as whether the .docx must already carry APA styling.

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