Skip to main content
Glama

Delete change request

servicenow_delete_change_request
DestructiveIdempotent

Deletes a ServiceNow change request by its sys ID, with an optional change type filter. Use it to remove obsolete or incorrect change records from change management.

Instructions

Delete a change request.

:param change_request_sys_id: Sys ID of the change request. :type change_request_sys_id: str or None :param change_type: Type of change (emergency, normal, standard). :type change_type: str or None

:return: Response containing parsed Pydantic model with information about the deleted change request. :rtype: Response

:raises MissingParameterError: If change_request_sys_id is not provided. :raises ParameterError: If invalid parameters or responses are encountered. :raises ParameterError: If JSON deserialization fails.

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_change_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
stateNo
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
change_typeNo
task_sys_idNo
text_searchNo
model_sys_idNo
sysparm_limitNo
sysparm_queryNo
worker_sys_idNo
api_parametersNo
cmdb_ci_sys_idNo
sysparm_offsetNo
cmdb_ci_sys_idsNo
response_lengthNo
template_sys_idNo
association_typeNo
name_value_pairsNo
change_model_sys_idNo
change_request_sys_idNo
refresh_impacted_servicesNo
change_request_task_sys_idNo
standard_change_template_idNo

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.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=true, and openWorldHint=true, so the safety profile is covered. The description adds real value beyond that: it names the required sys_id, states that missing it raises MissingParameterError, and documents ParameterError on invalid params or deserialization failure. Its major omission is the 'confirm' parameter, which the schema says is needed for destructive confirmation when the client cannot prompt — the description never mentions that gating behavior.

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 operative sentence is correctly front-loaded and wastes nothing. The rest is Sphinx docstring boilerplate — repeated ':type' lines, a ':rtype', and two separate ':raises ParameterError' entries for different causes — which is structured but verbose relative to the little information conveyed.

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 23-parameter destructive tool with no output schema, the description is far too thin: it omits the confirmation requirement, the bulk of the parameters, and any notion of what the deleted-record response contains beyond 'parsed Pydantic model'. The one genuinely useful addition is the required-sys_id error contract, but that does not make the definition complete enough to call the tool confidently.

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 only 4% across 23 parameters, so the description bears most of the burden, and it documents just two: change_request_sys_id and change_type. It adds nothing for confirm, sysparm_query, api_parameters, response_length, or the many association/CMDB fields, and change_type is of dubious relevance to a delete. It does not nearly compensate for the coverage gap.

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 opens with a specific verb and resource: 'Delete a change request.' That is unambiguous and lets an agent distinguish it from create/update/get siblings. It does not, however, differentiate it from adjacent destructive siblings such as servicenow_delete_change_request_task or servicenow_delete_change_request_conflict_scan, so it falls short of a 5.

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?

The description gives no when-to-use or when-not-to-use guidance, no alternatives, and no prerequisites. Its only conditional content is a ':raises MissingParameterError' line, which is error behavior rather than usage guidance. An agent must infer everything about when this tool is the right choice.

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