Skip to main content
Glama

Delete incident

servicenow_delete_incident
DestructiveIdempotent

Delete a ServiceNow incident record by its sys_id to remove unwanted or duplicate incidents; confirm destructive deletion when prompted.

Instructions

Delete an incident record.

:param incident_id: The sys_id of the incident record to delete. :type incident_id: str

:return: Response containing information about the deletion. :rtype: Response

:raises MissingParameterError: If incident_id is not provided.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "servicenow_delete_incident"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
incident_idNo
sysparm_viewNo
sysparm_limitNo
sysparm_queryNo
api_parametersNo
sysparm_fieldsNo
sysparm_offsetNo
name_value_pairsNo
sysparm_no_countNo
sysparm_display_valueNo
sysparm_query_categoryNo
sysparm_query_no_domainNo
sysparm_exclude_reference_linkNo
sysparm_suppress_pagination_headerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.0
    • addedInput schema / properties / confirm
      Added value: +{
      +  "default": false,
      +  "description": "Explicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.",
      +  "type": "boolean"
      +}
  2. First observedv2.4.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is covered. The description adds only a raised-exception note for a missing incident_id, and says nothing about the `confirm` parameter's role, whether deletion is permanent or recoverable, or what side effects (references, attachments) occur.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is front-loaded and short, which is good, but the remaining content is Sphinx docstring boilerplate (:type, :return:, :rtype:) that conveys almost nothing an agent needs. It is not bloated, but several lines do not earn their place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive operation with 16 parameters, no output schema, and almost no schema descriptions, the definition is far too thin. An agent cannot tell what confirm does, what the response contains, or how the many sysparm_* parameters affect the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 6% across 16 parameters, so the description must compensate and it does not. It explains only incident_id (as a sys_id) while confirm, data, api_parameters, and the entire sysparm_* family are left entirely undocumented in both schema and prose.

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 states a specific verb and resource ('Delete an incident record'), which is unambiguous and separable from siblings like servicenow_update_incident or servicenow_delete_change_request by name. It stops short of distinguishing this from the generic servicenow_delete_table_record, but the core purpose is unmistakable.

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?

There is no guidance on when to use this versus the generic table-record delete, no preconditions (e.g., required roles or record state), and no warning about irreversibility beyond the bare verb. The agent is left to infer all selection criteria from the tool name.

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