Skip to main content
Glama

apa7_apply_apa

Formats and validates Word .docx files against APA 7 rules, creating a new formatted copy and reporting changes, scores, and pass/fail status.

Instructions

TODO EN UNO: deja un .docx en APA 7 (fuente, doble espacio, márgenes, sangrías, títulos, referencias, tablas, número de página) y lo valida. Devuelve changes, score antes/después, passed y needs_agent_action. No toca el original (crea *.apa7.docx). Con 3+ tablas o figuras agrega su índice (lists=false lo evita). dry_run simula. accept_tracked_changes acepta control de cambios. running_head solo en trabajos profesionales. profile: 'apa7'|'a4'|ruta .json|{font,size,page_size,margin_cm,line_spacing,first_line_cm,numbered_headings}. language: es|en (auto por defecto).

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>"
    },
    "name": "apa7_apply_apa"
  }
}

Input Schema

NameRequiredDescriptionDefault
tocNo
listsNo
dry_runNo
profileNo
languageNo
file_pathYes
overwriteNo
output_pathNo
page_numbersNo
running_headNo
accept_tracked_changesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the side effect ("No toca el original (crea *.apa7.docx)"), the return payload (changes, score antes/después, passed, needs_agent_action), a simulation mode, tracked-changes handling, and the conditional index for 3+ tables/figures. Not covered: overwrite behavior when the output file already exists, or whether existing formatting is stripped.

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?

The core action and its "no toca el original" safety point are front-loaded, and the rest is packed into short clause fragments with no filler. The telegraphic style ("Con 3+ tablas o figuras agrega su índice (lists=false lo evita)") is dense but readable, though a couple of clauses assume the reader already knows the semantics of lists.

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 an 11-parameter mutation tool with no annotations and no output schema, the definition covers the important ground: side effects, return fields, and the behavior of most significant options. Remaining gaps are the undocumented toc/overwrite parameters and what happens to any pre-existing *.apa7.docx, which matter somewhat for a write tool.

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 coverage is 0%, so the description must compensate and largely does: it explains lists, dry_run, accept_tracked_changes, running_head, language (auto por defecto), and expands profile with its accepted values and object fields (font, size, page_size, margin_cm, line_spacing, first_line_cm, numbered_headings). toc, overwrite, and output_path receive no explanation, leaving three of eleven parameters unexplained.

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?

"TODO EN UNO: deja un .docx en APA 7 ... y lo valida" names a specific verb (format + validate), the resource (.docx), and the concrete formatting dimensions covered (fuente, doble espacio, márgenes, sangrías, títulos, referencias, tablas, número de página). The phrase "TODO EN UNO" implicitly distinguishes it from the narrower siblings apa7_check and apa7_build_document, but no sibling is named explicitly.

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 context is implied rather than stated: the all-in-one framing plus "dry_run simula" and "running_head solo en trabajos profesionales" tell the agent about modes, but there is no explicit "use X instead when Y" routing against apa7_check or apa7_build_document. The agent can infer when to use it, but must reason about the boundaries itself.

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