Skip to main content
Glama
TherapyPortal MCP Server

TherapyPortal MCP Server

by chrischall

therapyportal_download_receipt

Read-only

Download a therapy payment receipt as a PDF using its payment ID to submit to insurance, an HSA, or FSA.

Instructions

Download a therapy payment receipt as a PDF, by payment_id from therapyportal_list_receipts — e.g. to submit to insurance or an HSA/FSA. Saves to disk and returns the path on a local install, or returns the bytes inline (base64) on a hosted runner.

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": {
      "payment_id": "<payment_id>"
    },
    "name": "therapyportal_download_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
destNoFolder to save into (server transport, local install only). Must be inside THERAPYPORTAL_OUTPUT_DIR, or ~/Downloads / ~/Documents when that is unset.
payment_idYespaymentId from therapyportal_list_receipts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false), but the description adds genuinely non-obvious behavior: the return shape varies by transport—a file path on a local install versus base64 bytes inline on a hosted runner. That is the kind of gotcha an agent must know before parsing output. It doesn't address overwrite behavior for an existing file at dest or failure modes, so not a 5.

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?

Two sentences, zero filler: the action and identifier source come first, then the transport-dependent return behavior. Every clause carries information an agent needs.

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 correctly assumes the burden of explaining return values—path vs. inline base64—which it does. Both parameters are covered by a fully described schema, and the sourcing requirement is stated, so nothing needed to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%; both payment_id and the dest folder constraint (must live inside THERAPYPORTAL_OUTPUT_DIR or ~/Downloads / ~/Documents) are fully documented in the schema. The description adds no format or constraint detail beyond what the schema already states, so baseline 3 applies.

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 ("Download a therapy payment receipt as a PDF") plus the identifier source, and names the sibling tool therapyportal_list_receipts, which cleanly separates it from therapyportal_download_document and therapyportal_list_receipts.

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

Usage Guidelines4/5

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

Gives clear upstream context ("by payment_id from therapyportal_list_receipts") and a motivating use case (insurance / HSA-FSA submission), which tells an agent exactly when this tool is the right call. It stops short of explicit exclusions—e.g., it doesn't say to use therapyportal_download_document for non-receipt documents—so a 4 rather than 5.

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