Skip to main content
Glama
chrischall

splitwise-mcp

by chrischall

sw_get_receipt

Download the receipt image or PDF attached to a Splitwise expense. Returns the file bytes or extracts PDF text directly, bypassing 401 errors on receipt URLs.

Instructions

Download the receipt image or PDF attached to a Splitwise expense. The receipt URLs returned by sw_get_expense need the server's credentials — fetching them directly returns 401 — so use this tool instead. Set inline:true to get the bytes back in the result (images AND PDFs), or extract_text:true to get a PDF's text without the binary at all — both work when the caller can't see this server's filesystem. It also writes the file and returns the path, unless write:false or the filesystem is read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesExpense ID (the same id sw_get_expense takes)
sizeNoWhich stored rendition to fetch. Defaults to 'original' (full quality, and the only one a PDF receipt has). Falls back to the other rendition when the requested one is absent.
writeNoWrite the receipt to disk. Defaults to true. Pass false when the caller cannot reach this server's filesystem, or when the server runs read-only.
inlineNoReturn the receipt bytes in the result — an image block for images, an embedded resource for PDFs and everything else. Only for receipts under 4194304 bytes.
output_dirNoDirectory to write the receipt into. Defaults to $SPLITWISE_OUTPUT_DIR, else the current working directory.
extract_textNoAlso return the PDF's text layer as `text`. Ideal for looking up line items or totals without transferring the file. PDFs only; a scanned receipt has no text layer to extract.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv2.2.3

TDQS

A4.9/5.0
Behavior5/5

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

The description discloses meaningful behavioral details beyond the annotations: it writes files to disk by default, returns the file path, can inline bytes or extracted text, and can be disabled with write:false. It also warns about authentication issues with direct URL fetches. These are exactly the side effects and constraints the annotations do not capture.

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

Conciseness5/5

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

The description is dense but tightly organized: purpose first, then the 401 context, then parameter usage guidance, then filesystem behavior. Every sentence carries distinct information and none are wasted or redundant. The most important operational details are front-loaded.

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 six parameters and no output schema, the description still gives enough context to call the tool correctly: what it downloads, why direct URL fetching fails, how to get bytes or text, and when to avoid writing files. The schema covers remaining parameter mechanics like output_dir and size, so nothing essential is missing.

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 description coverage is 100%, so the baseline is 3, and the description adds extra semantic guidance on top of the schema. It clarifies when to use inline versus extract_text, that both work when the caller cannot see the server filesystem, and that write:false is for read-only or unreachable filesystem scenarios. This goes beyond the schema's per-parameter descriptions.

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?

The description opens with a specific verb and resource: 'Download the receipt image or PDF attached to a Splitwise expense.' It clearly distinguishes this tool from sw_get_expense, which returns receipt URLs rather than the receipt content itself. An agent can immediately tell what action this tool performs and what resource it operates on.

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?

The description explicitly tells the agent to use this tool instead of fetching receipt URLs directly, because those URLs return 401 without server credentials. It also gives concrete conditions for setting inline:true and extract_text:true, and when write:false is appropriate. This is strong when-to-use guidance with an explicit alternative path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrischall/splitwise-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server