Skip to main content
Glama

Add image to document

add_image_to_document

Upload an image and create a ticket document record for it. Provide image_data (base64-encoded bytes) OR image_url (publicly accessible URL). The image is stored in ticket-attachments.

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>",
      "file_name": "<file_name>"
    },
    "name": "add_image_to_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional notes about the document
file_nameYesImage filename with extension, e.g. diagram.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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/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, so the mutation profile is covered. The description adds the storage destination ('ticket-attachments') and that a document record is created, which is genuine extra context. It says nothing about size limits, supported formats, or what happens on repeat calls despite non-idempotency being declared.

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 short sentences, front-loaded with the action and followed by the input-mode rule and the storage location. No filler or repetition, and each sentence carries distinct 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?

For a six-parameter mutation with no output schema, the description covers the action and inputs adequately but leaves gaps: no indication of what is returned (e.g. a document identifier), no size or format constraints, and no note on how the new record relates to existing ticket attachments. The core call can be made correctly, but an agent cannot fully predict the result.

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 coverage is 100%, so all six parameters, including the image_data/image_url alternation and the mime_type default, are already documented in the schema. The description reinforces the either/or input mode but adds no new syntax, encoding, or constraint detail beyond that. A baseline 3 is appropriate when the schema carries the load.

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?

The description gives a specific verb+resource pair: upload an image and create a ticket document record. It is clear that this targets image attachments on a ticket rather than general documents. It does not, however, explicitly distinguish itself from siblings such as add_document or add_image_to_message.

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

Usage Guidelines2/5

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

The only guidance offered is the input-mode choice ('provide image_data OR image_url'), which is a how-to-call hint rather than a when-to-use rule. There is no statement of when to pick this over add_document or add_image_to_message, and no prerequisites or exclusions are given.

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