Skip to main content
Glama

getTicketMessagesBatch

Read-only

Fetch conversations for multiple tickets (up to 25 at a time) to reduce the number of tool calls needed. Returns each ticket's FULL conversational history (unlike getTicketDetails, which windows to the newest messages); system entries such as state and assignee changes are never included, so an empty messages array means no conversation, not an empty ticket history. Ids beyond the first 25 are reported in ignoredTicketIds, unprocessed. Each message carries senderRole — the role its author was acting in when posting: a workspace-team role ("owner", "manager", "viewer"), a participant role ("tester", "sdkTester"), or "guest" (external, invited by email). Messages include image, video and file entries, each with an attachment object ({ resourceId, type, url }); the url is a time-limited download link for the human user and differs on every call — resourceId is the stable identity. Over MCP, an image attachment can also be viewed by calling getTicketAttachment with its resourceId.

Input Schema

NameRequiredDescriptionDefault
productIdYesID of the beta project to query. Get valid IDs from the listProducts tool.
ticketIdsYesArray of ticket UUIDs. Only the first 25 unique ids are processed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnlyHint=true, it discloses the 25-ID processing limit, ignoredTicketIds behavior, exclusion of system entries, and the correct interpretation of an empty messages array. It also documents senderRole values, attachment structure, time-limited and changing URLs, and resourceId as the stable attachment identity.

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 purpose, batch limit, and key sibling distinction are front-loaded, and each sentence supplies distinct operational or return-value information. It is nevertheless a long, dense single paragraph with several semicolon-heavy sentences, so bullets or shorter sentences would improve scanability.

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?

With no output schema, the description compensates unusually well by documenting messages, ignoredTicketIds, senderRole, attachment fields, URL volatility, and empty-result semantics. Together with the complete input schema and read-only annotation, it provides the context needed to select, invoke, and interpret 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 already 100%, including the productId source and the ticketIds UUID and uniqueness constraints. The description adds useful operational context about batching and explains that excess IDs appear unprocessed in ignoredTicketIds, though it adds little further information about productId.

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 uses a specific verb and resource—fetching conversations for multiple tickets—and clarifies that it returns full conversational history. It explicitly distinguishes the tool from getTicketDetails, which only returns a window of the newest messages.

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 explains when to prefer the batch tool: retrieving conversations for multiple tickets, up to 25, to reduce tool calls. It also guides selection between getTicketDetails for windowed history and getTicketAttachment for viewing an image attachment by resourceId.

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