Skip to main content
The download_bank_statement tool returns a temporary, signed download URL for an existing bank statement PDF. It never generates a new document; it only returns an existing one. The accountId and statementMonth must come from the same row returned by list_bank_statements. There is no separate statement ID. Every call must include intent, and the token must carry the statements.read scope.

Scope

Required OAuth scope: statements.read

Input

string
required
The organization that owns the statement. Must be one of the organizations the token can access.
string
required
The account the statement belongs to. Must match the accountId from the same list_bank_statements row as statementMonth.
string
required
The statement month in strict YYYY-MM format. Must match the month from the same list_bank_statements row as accountId.
string
required
What the user asked for and why this call serves it, in 1 to 500 characters. Required on every tool call. See Common tool arguments.

Output

StatementDownload
required
Statement download metadata and signed URL.

Three-part content array

Unlike other tools, download_bank_statement returns a three-part content array in addition to structuredContent:
  1. Text summary naming the month and when the link expires.
  2. JSON payload containing the full StatementDownload object.
  3. resource_link with the temporary HTTPS download URL, labelled from the validated month rather than the returned fileName.
Your agent should present the resource_link to the user and avoid caching or sharing the URL.

Example

Notes

  • The accountId and statementMonth must come from the same list_bank_statements row. Combining values from different rows is invalid.
  • There is no statement ID. The tool is addressed by accountId plus statementMonth.
  • The tool returns an existing document. It never generates one.
  • downloadUrl is short-lived (hours, see expiresAt), single-purpose, and must not be cached or shared.
  • If the statement does not exist or is not accessible with the provided token, the tool returns an MCP error: Statement not found or not accessible.

list_bank_statements

Discover available statement months before downloading.

Result conventions

Learn how dual-channel output works across all tools.