Skip to main content
Glama

Attach to Card

attach_to_card

Add an attachment to a Trello card from an https URL, local file, or inline base64 data by specifying the card ID and source.

Instructions

Attach something to a card. The start of source decides what happens: https:// stores a link, and the file stays at that URL; file:// uploads a local file from the folder in TRELLO_ATTACH_ROOT, and is refused when that is not set; data:;base64, uploads inline data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName of the attachment on the card. A name without an extension takes the source's. Defaults to the file name, or attachment-<time> for inline data
cardIdYesID of the card to attach to
sourceYesAn https:// URL, a file:// URL, or a data:<mime>;base64,<data> URL
mimeTypeNoMIME type. Defaults to the one the extension or the data URL gives

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that https:// stores a link, file:// uploads from TRELLO_ATTACH_ROOT and is refused when unset, and data: URLs upload inline data. It omits broader mutation effects or permissions, but covers the critical source-dependent behavior well.

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?

Front-loads the core action in the first clause, then enumerates the three source behaviors compactly. Every sentence earns its place and there is no redundant or vague filler.

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?

The 4-parameter schema is fully documented and the description explains the most error-prone parameter. It does not describe return values, but no output schema exists and the schema handles name/mimeType defaults. It is nearly complete for calling the tool correctly.

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 100%, so the baseline would be 3. The description adds meaningful semantics for the source parameter by explaining the behavior of each URL scheme, including the file:// root requirement and refusal condition, going beyond the schema's format list.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Attach something to a card.' The source-scheme details clarify what 'something' can be. It does not explicitly differentiate itself from sibling tools such as download_attachment, but the purpose is clear enough to route correctly.

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?

Provides operational guidance for the source parameter, including when file:// is refused. However, it does not say when to use this tool versus alternatives or mention prerequisites such as card existence or permissions. Usage is implied rather than explicitly framed.

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