Skip to main content
Glama
soil-dev

capsulemcp

upload_attachment

Upload a file as a note attachment linked to a party, opportunity, or project. Provide the file as base64 with filename and MIME type.

Instructions

Upload a file as a new note attachment, linked to a party, opportunity, or project. Provide the file as base64-encoded dataBase64 along with filename and contentType (MIME). Also provide exactly one of partyId / opportunityId / projectId to anchor the note. Optionally pass content to set the note body (defaults to '[attachment]'). Two-step orchestration server-side: bytes upload → token → note creation. Adding to an existing entry is not supported.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesFilename Capsule should record (e.g. 'contract.pdf'). Capsule does NOT validate consistency between filename, contentType, and the actual bytes — a typo in either is accepted and the file is stored as labelled.
contentTypeYesMIME type of the file (e.g. 'application/pdf', 'image/png', 'text/plain'). Trusted by Capsule verbatim; not cross-checked against `filename` or the actual bytes.
dataBase64YesFile contents, base64-encoded. Decoded server-side and uploaded as the request body. Maximum 25 MB per attachment (Capsule's documented limit); the connector rejects oversized base64 before uploading. The inbound HTTP body limit is ~35 MB which leaves room for the base64 expansion of a 25 MB binary.
contentNoBody text for the note that will hold the attachment. Defaults to '[attachment]' if omitted.
partyIdNoLink the new note to a party (mutually exclusive with opportunityId / projectId).
opportunityIdNo
projectIdNo
Behavior4/5

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

Annotations indicate a non-read-only, non-destructive operation. The description adds value by detailing the two-step orchestration (bytes upload → token → note creation), the 25 MB limit, and connector rejection behavior, providing meaningful context beyond the annotations.

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?

The description is four sentences with no redundancy. It front-loads the purpose, then covers parameters and usage constraints efficiently.

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?

Despite missing an output schema, the description covers purpose, parameters, orchestration, limits, and unsupported use cases. It would benefit from mentioning the response format, but is otherwise comprehensive for a file upload tool.

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 71% with descriptions. The tool description repeats key parameters and adds context like the two-step process and size limits. It also clarifies the mutual exclusivity of partyId/opportunityId/projectId, enhancing understanding beyond the schema.

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?

The description clearly states the tool uploads a file as a note attachment linked to a party, opportunity, or project. It specifies the verb 'upload', resource 'file attachment', and context, distinguishing it from siblings like add_note.

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?

The description instructs on how to use: provide base64 data, filename, contentType, and exactly one entity ID. It also explicitly states 'Adding to an existing entry is not supported,' guiding when not to use. It does not explicitly name alternatives, but the context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/soil-dev/capsulemcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server