Skip to main content
Glama
robertsmieja

xmatters-mcp

by robertsmieja

Upload an attachment

xmatters_upload_an_attachment
Destructive

Upload a file to xMatters temporary storage and retrieve the returned path for attaching it to an event or scenario.

Instructions

Upload an attachment. POST /api/xm/1/attachments. Multipart file upload to temporary storage. Use the returned path when attaching to an event or scenario. File bytes are supplied by the MCP file input, not a filesystem path. Body fields: file, fileName. Reference: https://help.xmatters.com/xmapi/#upload-an-attachment Requires operator write opt-in and confirm:true; may notify recipients or change tenant data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoAPI query parameters; arrays are comma-joined. Documented names: none. Pagination is explicit using offset and limit; results are not automatically combined.
fieldsNo
uploadYes
confirmYesExplicit approval of this exact mutation. Operator must also enable XMATTERS_ALLOW_WRITES.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the upload goes to temporary storage, that file bytes come from the MCP file input rather than a filesystem path, and that the operation may notify recipients or change tenant data. These traits align with destructiveHint=true and add meaningful behavioral context beyond the boolean hints.

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?

The description is compact and front-loaded: the action, endpoint, and core usage are stated in the first sentence, followed by the key input detail, required confirmation, and side-effect warning. Every sentence earns its place without unnecessary filler.

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 mutation with no output schema, the description covers the essential invocation details: endpoint, multipart upload, temporary storage, how bytes are supplied, required confirm=true, and the write opt-in. It also explains that the returned path is used for later attachment, which is the main postcondition an agent needs to know.

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?

The description adds important meaning beyond the schema by explaining that the file is supplied through the MCP file input and that the underlying multipart body uses file and fileName. It does not fully explain how the upload.name/contentBase64 fields map to the request or describe the query/fields objects, but it compensates for the schema's moderate coverage.

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 names the specific verb and resource ('Upload an attachment'), gives the REST endpoint, and clarifies that it uploads to temporary storage for later use with an event or scenario. This distinguishes it from related upload tools like xmatters_upload_attachment_to_a_scenario, which attach directly to a scenario.

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

Usage Guidelines4/5

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

It clearly states when to use the tool: to get a returned path for attaching to an event or scenario. It does not explicitly name sibling alternatives or say when not to use them, so it lacks an explicit exclusion, but the context is otherwise clear.

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