Skip to main content
Glama
robertsmieja

xmatters-mcp

by robertsmieja

Get an event attachment

xmatters_get_an_event_attachment
Read-onlyIdempotent

Retrieve an event attachment from xMatters by specifying the event ID and attachment file name. This returns the file bytes, including text files, for direct download.

Instructions

Get an event attachment. GET /api/xm/1/events/{eventId}/attachments/{attachmentId}. Returns attachment bytes, including text files; response is not a JSON object despite illustrative response code. attachmentId is a file name. Body fields: none. Reference: https://help.xmatters.com/xmapi/#get-an-event-attachment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
queryNoAPI query parameters; arrays are comma-joined. Documented names: none. Pagination is explicit using offset and limit; results are not automatically combined.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only/idempotent/non-destructive behavior. The description adds valuable non-obvious behavior: the response is raw bytes (not JSON), text files are included, and attachmentId is a file name. This materially changes how an agent should handle the response.

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?

A compact set of short, information-dense statements, with the response-format caveat placed early. The reference link adds optional depth without bloating the definition.

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?

For a simple read-only GET, the description covers the key operational facts: exact route, non-JSON output, file-name semantics, and no request body. It would be slightly stronger with error/status expectations, but annotations cover the safety profile.

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?

With only the query object described in the schema, the description partially compensates by explaining that attachmentId is a file name and that there are no body fields. However, it does not elaborate on eventId semantics or path-parameter formatting beyond the endpoint template.

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?

States a clear action and target ('Get an event attachment') and pins it to the exact endpoint GET /api/xm/1/events/{eventId}/attachments/{attachmentId}. This distinguishes it from sibling attachment tools (scenario, scheduled message) by resource type.

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?

No guidance on when to choose this tool over related attachment fetchers or upload tools, and no mention of prerequisites or exclusion cases. The intended context must be inferred from the name and endpoint.

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

Deploy Server

Other Tools