Skip to navigation

write_documents

Upload, attach, detach and delete documents

Live server: test server (test.mcp.solvimon.com) only.

Uploads, attaches, detaches and deletes documents.

Actions: upload, attach, detach, delete

  • File types: PDF, HTML, Markdown, JSON, PPTX and POTX, up to 10 MiB (25 MB for PPTX/POTX). Through MCP, a request above about 4 MiB is refused, so attach large files in Desk.
  • Documents attach to quote versions and subscriptions. A quote version’s files change only while it is DRAFT.
  • delete is confirm-first, and refused while an active quote template still uses the document. detach keeps the document.
Attach a document to a quote version
{"action": "attach", "document_id": "docu_Pq4nTx8WmK2vRb6YcLd31", "attach_to": {"type": "QUOTE_VERSION", "id": "quve_Hn5tWx8QmK3vRb6YcLd27"}}

Example prompts

  • “Attach this implementation plan to the Acme quote.”
  • “Upload the signed order form PDF and attach it to Acme’s subscription.”
  • “Remove the old pricing slide from the draft Acme quote.”
  • “Attach the security addendum we already uploaded to the new Acme quote version.”
  • “Delete the outdated pricing deck.”

Example output

Prompt: “Attach this implementation plan to the Docs Example B.V. quote.”

Tool call:

{
"action": "upload",
"name": "implementation-plan.md",
"content_type": "text/markdown",
"content": "# Implementation plan\n\n1. Kick-off and solution design (weeks 1-2)\n2. Pricing plan and catalog set-up (weeks 3-4)\n...",
"description": "Implementation plan for the onboarding fee",
"attach_to": {"type": "QUOTE_VERSION", "id": "quve_qwDpzo0vA1bG0fCy7W1z"}
}

Response:

{
"object_type": "ATTACHMENT",
"id": "atch_NwDpzo0vA1bLuHCT7b1q",
"document_id": "docu_GwDpzo0vA1bLh0Cu7K1i",
"resource": {"type": "QUOTE_VERSION", "id": "quve_qwDpzo0vA1bG0fCy7W1z"},
"document_uploaded": true,
"attachment_id": "atch_NwDpzo0vA1bLuHCT7b1q"
}

Claude’s answer: I uploaded implementation-plan.md and attached it to version 1 of the Docs Example B.V. quote. While the version is DRAFT you can still detach it or add more files.