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:
- Text summary naming the month and when the link expires.
- JSON payload containing the full
StatementDownloadobject. resource_linkwith the temporary HTTPS download URL, labelled from the validatedmonthrather than the returnedfileName.
resource_link to the user and avoid caching or sharing the URL.
Example
Notes
- The
accountIdandstatementMonthmust come from the samelist_bank_statementsrow. Combining values from different rows is invalid. - There is no statement ID. The tool is addressed by
accountIdplusstatementMonth. - The tool returns an existing document. It never generates one.
downloadUrlis short-lived (hours, seeexpiresAt), 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.