Skip to main content
Glama

Pinpal Receipts

Import a bank statement

import_statement

A bank statement as CSV (text or base64) or a PDF with a text layer (base64). Lines are made in the month of their date; lines already there are skipped; Inbox receipts that match are sorted onto the new lines. Never a photo. Name the bank account the statement is from when the person has more than one; without one, the only account, or the only one in the file's currency, is used. Importing a file again into an account puts lines already there without an account onto it. Columns from the bank's detail view (merchant, original amount and currency, exchange rate, purchase date, reference, recipient, message; Swedish or English headers) are kept on each line, and importing such a file over lines already there adds them (enriched). Returns what was read, per month (with the account's opening and closing balance and whether its lines add up), the account, and the file's own completeness check when it has balances.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe file name, like statement-september.csv.
textNo
monthNoKeep only this month's lines.
base64No
bankAccountNoA bank account's name (like "Swedbank SEK") or id; see list_bank_accounts.

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?

Annotations only declare non-readonly, non-destructive, closed-world; the description goes further by disclosing dedup behavior ('lines already there are skipped'), enrichment of existing lines, inbox receipts being sorted onto new lines, and re-import reassignment semantics. It stops short of stating permission requirements or what happens on partial/ambiguous account matches.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is a verbless fragment, and the whole definition is a semicolon-chained block of ~120 words that is hard to parse on first read. Content is mostly substantive, but the return-value sentence could be trimmed or split for scannability.

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 a mutation tool with no output schema, the description does describe the return payload (per-month lines, balances, reconciliation status, file completeness check). Combined with the disclosed side effects, an agent has enough to call it correctly, though failure modes and permissions remain unstated.

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 60%, and the description compensates well: it explains the text-vs-base64 format split and the full account-resolution rules for bankAccount. The month parameter is never mentioned in the description (only its schema text covers it), which is the main remaining gap.

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 names a specific verb+resource (import a bank statement) and pins down accepted formats (CSV as text or base64, PDF with a text layer, never a photo). It does not, however, distinguish this tool from siblings such as read_document or attach_document, leaving the agent to infer the boundary.

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?

It gives real conditional guidance: specify bankAccount only when the person has more than one account, otherwise the sole account or the sole account in the file's currency is used, and re-importing onto an account assigns previously unassigned lines. It includes one explicit exclusion ('Never a photo') but names no alternative tool for non-statement documents.

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