Skip to main content
Glama

footnote-attach

Attach footnote texts to their in-text markers from page layout coordinates — Given footnote markers (label, page, x, y) and footnote texts (label, page, x, y) extracted from a laid-out document, pairs each marker with its note by label and page, pairing repeated labels on one page in reading order, optionally letting a note continue on the next page, and reports unattached markers, orphan notes, ambiguous groups (different counts for the same label) and notes placed above

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": {
      "markers": "<markers>",
      "notes": "<notes>"
    },
    "name": "footnote-attach"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesYes
yAxisNoDirection of increasing y: down (PDF.js, screen) or up (PDF user space). Default down.
markersYes
allowNextPageNoA note may sit on the page after its marker. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 well: it discloses the matching algorithm, the reading-order tiebreak for duplicated labels, the optional cross-page continuation, and the diagnostic categories surfaced (unattached markers, orphan notes, ambiguous count mismatches, notes above). It stops short on whether the operation is pure/side-effect-free and on the shape of the returned report, and the final clause is cut off mid-thought.

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?

Front-loaded with the verb and purpose, then progressively narrows to the pairing rule and the reported diagnostics; each clause adds information. It is one dense run-on sentence that terminates in a dangling fragment ('notes placed above '), which slightly harms readability but wastes no content.

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?

Four parameters with no output schema means the description must convey the return value, and it only lists diagnostic categories without saying whether results are arrays, counts, or grouped objects. Combined with the unaddressed yAxis parameter and the truncated ending, an agent can call it but cannot fully anticipate or consume the result.

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?

The description restates the label/page/x/y structure of both arrays and conveys what allowNextPage changes, but never mentions 'yAxis' — the one parameter that silently determines what 'reading order' and 'above' mean, which is exactly the semantics an agent could get wrong. With 50% schema coverage, that omission leaves a real gap the schema text alone only partly fills.

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 ('Attach footnote texts to their in-text markers') and immediately names the input domain ('from page layout coordinates'), then spells out the pairing rule (label + page, reading order for repeats). An agent knows exactly what transformation this performs and does not need to open the schema to understand the operation.

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

Usage Guidelines4/5

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

The precondition is explicit: inputs must be marker/note records 'extracted from a laid-out document' carrying label, page, x, y. That tells an agent when the tool applies, but there is no statement of when *not* to use it, no prerequisite about prior layout/extraction steps, and no exclusion for documents whose markers lack coordinates.

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