Skip to main content
Glama

Add an AI attachment

create_attachment

Add an AI attachment

A new attachment, switched off and without media. Put its media on it next (uploadAttachmentMedia, or importAttachmentMedia from links), then switch it on with updateAttachment and active: true. While it is on, its name, when_to_send and description are part of the AI's instructions on every reply, and the AI sends its media when when_to_send fits the conversation. The type decides the media it holds and can't change once media is stored. The answer's message_weight says what the agent now reads (Main Instructions, active knowledge, active attachments' text, in characters) and what one of its replies costs; when it has a notice, pass it on to the user.

Input Schema

NameRequiredDescriptionDefault
nameYesCan't contain angle brackets.
typeYes
agent_idYesThe agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`.
priorityNo
descriptionNo
when_to_sendYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond annotations, it discloses the initial inactive/no-media state, immutability of type once media is stored, and the runtime effect of name, when_to_send, and description on every AI reply. It also explains response message_weight and notice handling, and does not contradict the non-destructive/non-idempotent annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is front-loaded and mostly dense with lifecycle and response details. It repeats the title in the opening line and could be structured more sharply, but no sentence is clearly disposable.

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

Completeness5/5

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

For a six-parameter creation tool with no output schema, it covers the full create-to-media-to-activate lifecycle, active-state effects, and relevant response fields. The only notable omission is priority semantics, while authorization details are already in the schema.

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 33%, and the description compensates for key parameters by explaining type's media role and immutability, plus how name, when_to_send, and description affect active AI behavior. It leaves priority undocumented in both schema and description, so compensation is useful but incomplete.

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 states a specific verb and resource ('Add an AI attachment') and immediately scopes it as a new, switched-off attachment without media. It names the follow-up media and activation tools, so an agent can distinguish this from import_attachment_media and update_attachment.

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

Usage Guidelines5/5

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

It gives an explicit lifecycle sequence: create, attach media via uploadAttachmentMedia/importAttachmentMedia, then activate with updateAttachment and active:true. It also explains when media is sent and what fields affect replies, so when to use this versus alternatives is clear, with only a minor naming mismatch against the snake_case sibling list.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources