Skip to main content
Glama
megamaced

collectives-mcp

by megamaced

upload_attachment

Upload an attachment to a page, creating the attachment directory if needed, and receive the relative path for embedding in markdown.

Instructions

Upload an attachment to a page. Creates the attachment directory if needed. Returns the relative path to use in markdown (e.g. ![alt](.attachments.{pageId}/filename.png)).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectiveIdYes
pageIdYes
filenameYesFilename for the attachment.
contentYesFile content as a UTF-8 string (for text) or base64-encoded string (for binary; set contentType accordingly).
contentTypeNoMIME type (e.g. "image/png", "text/plain"). Defaults to application/octet-stream.
Behavior3/5

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

Discloses directory creation and return value, but omissions include: what happens if the page doesn't exist, file size limits, overwrite behavior, permissions needed. With no annotations, the description should provide more behavioral details.

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?

Two concise sentences, front-loaded with the action and key outcomes. No irrelevant information.

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?

Covers main action and return value, but lacks details on error handling, size limits, idempotency, and prerequisites. Adequate for basic usage but not fully complete given no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 60%, but the description does not add meaning to undocumented parameters (collectiveId, pageId). The example of markdown path is helpful but does not compensate fully for the lack of parameter context.

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 action (upload an attachment to a page) and distinguishes it from sibling tools like delete_attachment or list_attachments. It also adds value by mentioning directory creation and returned markdown path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use vs alternatives (e.g., delete_attachment, list_attachments). The purpose is clear but lacks context for appropriate usage scenarios.

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/megamaced/nc_collectives-mcp'

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