attach_file_to_transaction
Attach a local image or PDF receipt to a LunchMoney transaction, validating file type and size (max 10MB).
Instructions
Attach a local image or PDF receipt (max 10MB) to a transaction. Allowed types: image/jpeg, image/png, image/heic, image/heif, application/pdf. The file is read from the local filesystem of the host running this MCP server, and its type is determined from its actual contents — files that are not a real image or PDF are rejected. If LUNCHMONEY_ATTACHMENTS_DIR is set on the host, only files inside that directory can be attached.
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": {
"transaction_id": "<transaction_id>",
"file_path": "<file_path>"
},
"name": "attach_file_to_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional notes describing the attachment. | |
| file_path | Yes | Absolute or relative path to the receipt file on the local filesystem. Must be a regular file whose contents are a JPEG, PNG, HEIC, HEIF, or PDF. If the host sets LUNCHMONEY_ATTACHMENTS_DIR, the path must resolve inside that directory. | |
| content_type | No | Optional assertion of the file's MIME type. The server always determines the real type from the file contents; if this disagrees with it, the request is rejected. Omit unless you need that check. | |
| transaction_id | Yes | ID of the transaction to attach the file to. |