Skip to main content
Glama

Delete problem

servicenow_delete_problem
DestructiveIdempotent

Deletes a ServiceNow problem record by sys_id, permanently removing a specific problem from the system. Use it to clean up unwanted problem records after confirming the deletion.

Instructions

Delete a problem record.

:param problem_id: The sys_id of the problem record to delete. :type problem_id: str

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

:raises MissingParameterError: If problem_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_problem"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
problem_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.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, readOnlyHint=false and openWorldHint=true, so the safety profile is covered structurally. The description adds one genuinely new behavioral fact — that a MissingParameterError is raised when problem_id is absent — but says nothing about irreversibility, cascade effects on related incidents/change requests, or the confirm-flag behavior that the schema introduces.

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 one-line purpose is front-loaded and the text is short, but it is raw Sphinx docstring boilerplate: ':rtype: Response' and ':return: Response containing information about the deletion' convey essentially nothing. Roughly half the sentences 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 16-parameter destructive operation with no output schema and near-zero schema coverage, the description is far too thin. An agent calling this cannot learn what confirm does, which sysparm filters apply to a delete, or what a successful response looks like.

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 6% across 16 parameters, so the description must compensate and largely fails: it explains only problem_id. The other fifteen parameters (confirm, sysparm_*, api_parameters, name_value_pairs, data) are undocumented anywhere. It also types problem_id as str while the schema accepts integer or string, adding mild confusion rather than clarity.

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?

"Delete a problem record" gives a specific verb and resource, and the name plus title make it distinguishable from servicenow_get_problem / servicenow_update_problem. It stops short of explicitly differentiating scope from those siblings (e.g. what a delete does vs. an update to state), so it is clear but not maximally discriminating.

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 tool versus alternatives such as servicenow_update_problem or servicenow_delete_table_record, and no stated preconditions (required role, whether the record must be closed first). The only conditional statement is an exception case, not usage selection.

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