MCP · Bills
Get an upload URL
Prepares an upload for one document and returns a short-lived URL and token. PUT the file's raw bytes to the URL, then pass the token to upload_bill or respond_to_task. Documents never travel inside a tool call.
Description for models
Sent verbatim in tools/list. It's written for the model, so it says when to use the tool.
Arguments
The file name of the document you are about to upload, including its extension (.pdf, .jpg, .png, .heic, .heif, .webp or .gif). The extension says how to read the bytes, so it must match what they are.
Added by the server
On every tool that acts on one companyThe id of the company this applies to. This connection covers a single company, which is filled in for you, so you can leave this out.
Result
content[0].text, starting with Company: and the company name.isError: true. The text says what went wrong and what to tell the user.workspace argument, the server asks which company the call is for. A client that can't ask gets an error that lists the companies.Tools return plain text with no output schema. This example follows the tool's real format, but the values are made up.