Skip to main content
Glama
OurFamilyWizard MCP

OurFamilyWizard MCP

by chrischall

ofw_upload_expense_pdf

Destructive

Upload a PDF receipt to OurFamilyWizard My Files for later attachment to an expense. Supports local path or signed URL, with confirmation before writing.

Instructions

Upload a PDF to OurFamilyWizard My Files for later attachment to an expense. Accepts either a local path or a signed ChatGPT/oaiusercontent HTTPS URL plus fileName. Exactly one of path or url must be supplied. This tool accepts PDF files only and uploads them using the same SHARED file metadata as the OFW expense form so the returned fileId can be attached to an expense. A SHARED file is visible to the co-parent in My Files immediately, whatever the visibility of the expense it is later attached to (that is set separately by ofw_create_expense privateExpense). Asks the user to confirm first: a confirmation prompt where the client supports one; otherwise the first call performs NO write and returns a preview of exactly what would happen plus a confirmToken, and only a repeat call with that token proceeds (see MCP_CONFIRM_MODE).

Input Schema

NameRequiredDescriptionDefault
urlNoSigned HTTPS oaiusercontent.com URL for a PDF supplied by the ChatGPT host. Mutually exclusive with path.
pathNoPath to a local PDF file inside the upload directory (OFW_UPLOAD_DIR). Tilde (~) is expanded by the configured attachment I/O implementation. Mutually exclusive with url.
labelNoDisplay label for the file in OFW (default: filename)
fileNameNoFilename to use for a remote URL upload. Must end in .pdf. Defaults to receipt.pdf.
descriptionNoDescription shown in OFW My Files (default: filename)
confirmTokenNoONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.20.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true) by disclosing the side effect that matters most: the file is visible to the co-parent in My Files immediately, independent of the later expense's visibility. It also details the two-phase confirmToken fallback and that phase 1 performs no write. It does not cover limits such as max file size or failure/overwrite behavior.

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

Conciseness4/5

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

Front-loaded with purpose and the path/url constraint, then the side-effect warning and confirmation mechanics. Dense and mostly waste-free, though the confirmation paragraph is long enough that the key 'no write without confirmation' point competes with procedural detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the input contract, the mutually-exclusive requirement, the shared-metadata side effect, and the confirmation protocol, and mentions the returned fileId even though no output schema exists. Gaps remain around error cases, size limits, and the full shape of the preview response.

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 coverage is 100%, so per-parameter meaning is already documented, but the description adds the cross-field rule the schema only implies ('exactly one of path or url'), plus the sequencing constraint on confirmToken (never on first call, never invented, never reused). That is genuine semantics beyond the per-property text.

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 + resource + destination: 'Upload a PDF to OurFamilyWizard My Files for later attachment to an expense.' It also implicitly distinguishes itself from the generic sibling ofw_upload_attachment by naming the expense-attachment purpose and the SHARED My Files target.

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?

Explicit conditions: exactly one of path or url must be supplied, PDF files only, confirmation is required before any write, and it routes visibility decisions to ofw_create_expense's privateExpense flag. An agent knows when and how to call this versus ofw_upload_attachment.

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