Skip to main content
Glama

Delete change request task

servicenow_delete_change_request_task
DestructiveIdempotent

Deletes a task tied to a ServiceNow change request using the change request and task Sys IDs, removing obsolete or incorrect change tasks from the workflow.

Instructions

Delete a task associated with a change request.

:param change_request_sys_id: Sys ID of the change request. :type change_request_sys_id: str or None :param task_sys_id: Sys ID of the task associated with the change request. :type task_sys_id: str or None

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

:raises MissingParameterError: If either change_request_sys_id or task_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_task"
  }
}

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, idempotentHint=true, and openWorldHint=true, so the safety profile is covered structurally. The description adds useful error behavior (MissingParameterError when either sys_id is absent, ParameterError on invalid params/deserialization) and a return type. However, for a destructive tool it omits critical behavior: whether the confirm parameter must be set, whether deletion cascades to related records, and whether it is soft or hard delete.

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 content is front-loaded with a clear one-line purpose, but it is formatted as a raw Sphinx docstring with redundant ':type' lines repeating what ':param' already conveys. It is not bloated, but the structure is machine-generated rather than agent-optimized.

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, 23-parameter tool with no output schema and near-zero schema coverage, the description is too thin. It says nothing about the confirmation requirement, permission prerequisites, or the effect on related task records, leaving major gaps an agent must guess at before an irreversible 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 4% across 23 parameters, so the description bears almost the full burden. It documents only change_request_sys_id and task_sys_id, and adds little beyond naming them. 'confirm', 'response_length', 'sysparm_query', and the other 20 parameters remain unexplained in both schema and description.

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 a task associated with a change request.' That is unambiguous and distinguishable from the sibling 'servicenow_delete_change_request' (which deletes the request itself). It stops short of explicitly naming or contrasting with the update/create task siblings, so a 4 rather than 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?

There is no when-to-use or when-not-to-use guidance. The description never mentions that the schema carries a 'confirm' flag for destructive operations, nor when to prefer this over deleting the parent change request or using the update task tool. The agent is left to infer usage entirely.

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