apa7-tools
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| APA7_PROFILE | No | Optional APA 7 profile name, path to a JSON profile file, or profile configuration. Used when no profile is explicitly provided; otherwise the server looks for apa7.profile.json next to the document. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
APA 7 para Word (.docx). Flujo: 1) apa7_apply_apa(file_path) corrige y valida todo en una llamada; no llame a apa7_check después salvo que haya editado a mano. 2) Resuelva 'needs_agent_action' con apa7_format_reference + apa7_replace_references, apa7_replace_text o apa7_insert_blocks; no invente fuentes, pregunte. 'suggestions' son opcionales. Entregue outputPath. Redacción: apa7_read(mode='text') y corrija con apa7_replace_text. apa7_verify_references envía datos a servicios externos: pida permiso y use confirm_external=true. Trabajo de estudiante: sin running_head, sin título 'Introducción', sin TOC salvo que la institución la pida. No agregue portada ni resumen si no los piden. Si ok=false lea error.hint; si falla raro, apa7_help('doctor').
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| apa7_apply_apaA | 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). |
| apa7_checkA | Valida sin modificar: un .docx (file_path), texto plano (text) o una referencia (reference). Resumen agrupado por regla; detail='full' devuelve cada aviso, citas y referencias. |
| apa7_readA | Lee un .docx. mode='outline': títulos, rótulos y conteos (índices para insertar). mode='text': párrafos con índice y sección para revisar ortografía/gramática/estilo (pagine con start/limit y next_start); corrija con apa7_replace_text sin tocar citas. |
| apa7_build_documentB | Crea un .docx APA 7 NUEVO desde bloques (los mismos de apa7_insert_blocks). profile: 'apa7'|'a4'|ruta .json|{font,size,page_size,margin_cm,line_spacing,first_line_cm,numbered_headings}. language: es|en (auto por defecto). |
| apa7_insert_blocksB | 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. |
| apa7_replace_textC | Reemplaza fragmentos exactos: replacements=[{find, replace}] (correcciones de redacción o de citas). |
| apa7_replace_referencesC | Reemplaza TODA la lista de referencias por entries (se ordenan; cursiva para títulos/revistas). |
| apa7_format_referenceB | Arma una referencia APA 7 (con cursiva). ref: {type, title, authors[apellidos], initials['K. S.',…], corporate_author, year, publisher, journal, volume, number, pages, url (o DOI), edition, site_name, book_title, book_editors[], subtitle, full_date, bracket}. type: libro|capitulo_libro|articulo_revista|articulo_periodico|tesis|informe|pagina_web|pelicula|video|podcast|ley|red_social. |
| apa7_verify_referencesA | Comprueba que las fuentes existen (DOI, Crossref, Open Library, enlaces); detecta referencias inventadas. Envía datos a servicios externos: requiere permiso del usuario y confirm_external=true. |
| apa7_helpB | Ayuda bajo demanda. topic: rules (id y título; category o rule_id para el detalle) | blocks (tipos de bloque) | doctor (diagnóstico del entorno si algo falla). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools are clearly separated by intent: build_document (new file) vs insert_blocks (existing file), check (validate) vs apply_apa (fix in place) vs verify_references (external existence check). However, reference handling is split across three tools (insert_blocks' references block, replace_references, format_reference) and both apply_apa and build_document can produce formatted output, which could cause occasional misselection. The detailed descriptions mostly resolve these overlaps.
Every tool uses the same apa7_ prefix with snake_case verb_noun structure (build_document, insert_blocks, replace_text, format_reference, verify_references, read, check, apply_apa). The convention is predictable and immediately readable. The only minor deviation is apa7_help, which is a noun rather than a verb, but it fits naturally as a utility tool.
Ten tools is well within the ideal range and each maps to a distinct stage of the APA 7 document lifecycle (read, build, insert, replace, format, verify, validate, fix, help). No tool appears redundant or filler. The surface is scoped tightly to a single coherent domain.
The core lifecycle is covered: read, create, insert blocks, replace text/references, format and verify references, auto-format, and validate. Gaps exist around editing or deleting already-inserted content (no remove_block, update_table/figure, or delete_reference beyond full replacement), and no export/convert option. These are workarounds an agent can often handle via replace_text or rebuilding, so the surface is largely complete.