Skip to main content
Glama

annotate_statement_pdf

Produce a printout-ready redlined bank statement PDF: the original statement pages unchanged, with redline margin notes naming each transaction's Schedule C category and line, a summary cover page (totals by line, deductible vs nondeductible vs needs-review), and a transaction index mapping every item to its statement page. Returns the annotated PDF as base64. General information only, not tax advice.

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": {
      "pdf_base64": "<pdf_base64>",
      "categorized_transactions": "<categorized_transactions>"
    },
    "name": "annotate_statement_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdf_base64Yes
categorized_transactionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses the return channel (base64 PDF), that original pages are preserved unmodified, and what is added. It omits operational details such as payload size limits for a base64 PDF or failure behavior on malformed input, which keeps it from a 5.

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 artifact, then the contents in a compact list-like construction; little waste. The trailing legal disclaimer is short and arguably earns its place for a tax-domain tool.

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?

No output schema exists, and the description compensates by stating the return format and the PDF's internal structure, so an agent knows what comes back. The remaining gap is the undocumented internal structure of categorized_transactions, which matters for correct invocation.

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%, so the description must compensate. It implies pdf_base64 is the source statement and that categorized_transactions must carry per-transaction Schedule C category and line, but it does not specify field names or the object shape, nor whether the base64 needs a data URI prefix.

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 artifact (produce a printout-ready redlined bank statement PDF) and then enumerates what the artifact contains: unchanged original pages, margin notes with Schedule C category/line, a summary cover page, and a transaction index. This is clearly distinct from siblings like parse_bank_statement or categorize_transactions without needing their schemas.

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 is only implied: the required categorized_transactions input signals this runs after categorization, but the description never says when to choose this over alternatives or what preconditions must hold. No exclusions, no pointer to a sibling tool for a related but different output.

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