Skip to main content
Glama

Add image to message

add_image_to_message

Upload an image and attach it to a new message on a ticket. Provide image_data (base64-encoded bytes) OR image_url (publicly accessible URL). The image is stored in ticket-attachments and linked to the message as an attachment.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ticket_id": "<ticket_id>",
      "content": "<content>",
      "file_name": "<file_name>"
    },
    "name": "add_image_to_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesText body of the message that accompanies the image
file_nameYesImage filename with extension, e.g. screenshot.png
image_urlNoPublicly accessible image URL — use this OR image_data
mime_typeNoImage MIME type, e.g. image/png or image/jpeg (default: image/jpeg)
ticket_idYesTicket UUID
image_dataNoBase64-encoded image bytes — use this OR image_url
is_internalNoIf true, internal note visible only to support staff (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=true. The description adds real value by naming the storage location ('ticket-attachments') and stating that the image is linked to the message as an attachment. However, for a non-idempotent write that creates a message, it says nothing about duplicate-creation on retry, failure behavior when neither image source is supplied, or what the caller gets back.

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?

Three sentences, zero filler, with the core action stated first and the storage/linking consequence last. Every sentence carries information an agent would otherwise have to guess at.

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?

Seven parameters, full schema coverage, no output schema, so the remaining burden is mainly the create-and-attach side effect, which is covered. It falls short of 5 because an agent still cannot predict what happens if neither image source is given, nor what the resulting message/attachment looks like after the call.

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 100%, so every one of the seven parameters, including the image_data/image_url either-or relationship, is already documented in the schema. The description restates that either-or rule but adds no format, size-limit, or precedence detail beyond it, which is the baseline 3 case where the schema does the heavy lifting.

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 opens with a specific verb and resource: 'Upload an image and attach it to a new message on a ticket.' That combination of action (upload+attach), resource (image), and target (new message on a ticket) lets an agent separate this from add_image_to_document and add_message without opening any schema.

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?

The only selection guidance is between the two input methods ('Provide image_data OR image_url'), which is about parameter choice rather than tool choice. It never says when to use this instead of add_message or add_image_to_document, nor when it is not appropriate, so the intended usage is only implied by the name and the opening sentence.

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