Skip to main content
Glama
robertsmieja

xmatters-mcp

by robertsmieja

Delete a device name

xmatters_delete_a_device_name
Destructive

Delete a specific device name by its ID from xMatters. Requires explicit confirmation and operator write access.

Instructions

Delete a device name. DELETE /api/xm/1/device-names/{deviceID}. DEFINITION incorrectly says /devices/{deviceID}; JavaScript and Python requests both use /device-names/{deviceID}. The cURL sample also misspells device-namess. See audited correction C01. Body fields: none. Reference: https://help.xmatters.com/xmapi/#delete-a-device-name Requires operator write opt-in and confirm:true; may notify recipients or change tenant data.

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.
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.1/5.0
Behavior4/5

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

Annotations already mark this as destructive and non-read-only; the description adds meaningful context by noting it 'may notify recipients or change tenant data' and requires an operator write opt-in. It also flags an upstream API documentation error, which is valuable beyond the structured annotations.

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?

Front-loaded with the action, resource, and endpoint. The correction about the official definition and cURL typo is dense but purposeful because it prevents an agent from using a wrong URL. Some redundancy exists, but most sentences earn their place.

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 one-resource DELETE with no output schema, it covers the endpoint, required confirmation, side effects, and a known documentation discrepancy. It does not describe response or error formatting, but that is not essential for this mutation.

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 67%, so the baseline is 3. The description adds 'Body fields: none' and confirms the confirm:true requirement, but it does not meaningfully expand on path.deviceID or query beyond what the schema already states.

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 the exact action and resource: 'Delete a device name', and anchors it to the correct endpoint /api/xm/1/device-names/{deviceID}. It also explicitly separates this from deleting a device by naming the resource type, making sibling differentiation clear.

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?

Provides explicit preconditions for use: operator write opt-in and confirm:true, plus a warning about side effects. It does not name alternative tools, but the sibling set and resource name make the intended use case obvious.

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