Skip to main content
Keep a file in the company’s archive with its type: save it with upload_id after upload and a PUT to its upload_url, or as file in ChatGPT. Saving only keeps the file: an invoice or receipt to record in the books goes to expenses from_document. Actions (* required): upload(filename*, content_type*, size_bytes*); save(type*, attachment_id, date, description, file, title, upload_id). Availability: Self-employed / Company / Gestoría. Gestoría: only save, in the client the call names: add client, the client’s id from clients_read list. Melso for gestorías explains what a firm’s connection does. The live tool list is authoritative: the company’s plan and your role can narrow this contract. Understand access.

When to use

Use documents for save, upload. Use documents_read for the companion actions. The live tool list determines availability.

Input

Actions

The tool’s schema combines the fields of every action. Each action accepts only its own fields below; send action with them.

Write actions

These actions change data. The server lists them only with a plan that includes the tools.
Keep a file as one of the company’s documents: one sent or built in the Melso chat (attachment_id), one PUT through upload (upload_id), or in ChatGPT a PDF or image the person attached (file). It only keeps the file: an invoice or a receipt to record goes to expenses from_document.
Reserve the upload of a local PDF or image of at most 15 MB: PUT its exact bytes to upload_url with the returned headers, then call save with upload_id. In ChatGPT, give save the file the person attached as file instead. An invoice or a receipt to record goes to expenses from_document instead.

Output

upload returns an upload_id, the upload_url and headers for a PUT. save keeps the uploaded file with its type and details. Saving a document does not issue an invoice or file a return. The result uses MCP content blocks; JSON payloads are encoded in text and may also appear in structuredContent. Check isError before reading a success payload. When the server declares an outputSchema, it is reproduced below. Check the action result and its declared fields before reporting success.

Example

Use an OAuth access token issued for this MCP resource and replace the example identifiers with values from your own company. Write actions change data.