Skip to main content
Glama
shanjairaj7

commune-mcp

by shanjairaj7

upload_attachment

Upload a file by providing base64-encoded content, filename, and MIME type. Returns an attachment ID to use when sending emails.

Instructions

Upload a file for use when sending emails.

Returns an attachment_id to pass to send_email's attachments parameter.

Args: content: Base64-encoded file content filename: Original filename, e.g. "report.pdf" mime_type: MIME type, e.g. "application/pdf" or "image/png"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
filenameYes
mime_typeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions the upload and return of an ID but lacks disclosure of important behavioral traits such as file size limits, authentication requirements, or processing time. This is insufficient for safe and effective use.

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 extremely concise with three sentences and a clear argument list. Every sentence adds value, and the structure front-loads the purpose and return value.

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

Completeness3/5

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

The description covers the tool's purpose and parameters, but given no annotations and an output schema (not shown), it lacks behavioral context like file size limits or security. It is adequate but not fully 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?

The input schema has 0% description coverage, so the description adds significant meaning by explaining each parameter: content as base64-encoded, filename with an example, and mime_type with MIME type examples. This goes beyond schema field names.

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 verb 'Upload' and the resource 'a file for use when sending emails.' It also explains the return value (attachment_id) and its purpose for send_email, distinguishing it from sibling tools like send_email and get_attachment_url.

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 implicitly indicates when to use: before sending an email to obtain an attachment_id. It does not explicitly state when not to use or list alternatives, but the context is clear given the sibling tools and the email workflow.

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/shanjairaj7/commune-mcp'

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