Skip to main content
Glama

Samuelz® Accounting

Bankoriginal lesen

read_bank_transaction_attachment
Read-onlyIdempotent

Read a live bank attachment selected by its transactionId + attachmentId from list_bank_transaction_attachments. For an archived catalog documentId use read_accounting_source_evidence; for a supplierInvoiceId use read_qonto_supplier_invoice_original. These selectors are not interchangeable. Start at offset 0, maxBytes default 49152 and maximum 65536. The response includes full-file SHA256 and a bounded base64 chunk; retain that expectedSha256 for every later offset. A changed file, missing attachment or revoked right fails closed, never an empty original. Current OAuth, Accounting module, workspace, native Qonto account and credential authority are checked across the read. This fetches bytes only; no archive, import, matching, payment, message or policy change.

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": {
      "transactionId": "<transactionId>",
      "attachmentId": "<attachmentId>"
    },
    "name": "read_bank_transaction_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoZero-based byte offset, default 0. Later chunks require the full-file expectedSha256 returned by the first read.
maxBytesNoMaximum bytes in this base64 chunk, 1–65536; default 49152.
attachmentIdYesExact attachmentId returned for this transaction by list_bank_transaction_attachments.
transactionIdYesExisting native Qonto bank transaction ID in this workspace, not a supplier invoice or accounting document ID.
expectedSha256NoFull-file lowercase SHA256 from the first read; required after offset 0 so a changed original is rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / attachmentId / description
      Added value: +"Exact attachmentId returned for this transaction by list_bank_transaction_attachments."
    • addedInput schema / properties / expectedSha256 / description
      Added value: +"Full-file lowercase SHA256 from the first read; required after offset 0 so a changed original is rejected."
    • addedInput schema / properties / maxBytes / description
      Added value: +"Maximum bytes in this base64 chunk, 1–65536; default 49152."
    • addedInput schema / properties / offset / description
      Added value: +"Zero-based byte offset, default 0. Later chunks require the full-file expectedSha256 returned by the first read."
    • addedInput schema / properties / transactionId / description
      Added value: +"Existing native Qonto bank transaction ID in this workspace, not a supplier invoice or accounting document ID."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description still adds real value: fail-closed semantics ('A changed file, missing attachment or revoked right fails closed, never an empty original'), the SHA256 continuity protocol, and the authorization gates (OAuth, Accounting module, workspace, native Qonto account, credential authority). It also bounds scope by excluding side effects ('no archive, import, matching, payment, message or policy change'), which is exactly the kind of context annotations cannot express. It stops just short of a 5 because it does not describe error payload shapes or whether partial chunks are retryable.

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 identity and routing rule, then the paging protocol, then the safety envelope; every clause is doing work. A few details duplicate the schema (default 49152, maximum 65536) and could be trimmed without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-shape burden and does: full-file SHA256 plus a bounded base64 chunk. Combined with the fail-closed statement, permission checks, and scope exclusions, an agent has everything needed to call this correctly and to chain offsets safely.

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 100%, so per-parameter docs already exist; the description adds cross-parameter protocol meaning instead of restating them — 'retain that expectedSha256 for every later offset' explains the dependency between the first read and subsequent chunk requests. It also restates offset 0 and the maxBytes bounds, which is mildly redundant with the schema.

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 ('Read a live bank attachment') and immediately pins the identity keys ('selected by its transactionId + attachmentId from list_bank_transaction_attachments'). It also negates the two look-alike resources it is not (archived catalog documentId, supplierInvoiceId), so an agent can distinguish it from siblings without inspecting schemas.

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

Usage Guidelines5/5

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

Gives explicit routing: archived catalog documentId goes to read_accounting_source_evidence, supplierInvoiceId goes to read_qonto_supplier_invoice_original, and it warns 'These selectors are not interchangeable.' It also names the discovery tool that produces the required IDs and states the paging start condition ('Start at offset 0').

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