Skip to main content
Glama

Delete cmdb relation

servicenow_delete_cmdb_relation
DestructiveIdempotent

Deletes a specified relation from a CMDB configuration item, removing the link between the CI and its related record by relation sys_id.

Instructions

Deletes the relation for the specified configuration item (CI).

:param className: CMDB class name. :type className: str :param sys_id: Sys_id of the CI. :type sys_id: str :param rel_sys_id: Sys_id of the relation to remove. :type rel_sys_id: str

:return: Response containing the operation result. :rtype: Response

:raises MissingParameterError: If className, sys_id, or rel_sys_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_cmdb_relation"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
sourceNo
sys_idNo
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
classNameNo
attributesNo
rel_sys_idNo
sysparm_limitNo
sysparm_queryNo
api_parametersNo
sysparm_offsetNo
inbound_relationsNo
outbound_relationsNo

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.9/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. The description adds the error-raising condition and the notion that a single relation is removed, which is useful, but it omits behavioral essentials for a destructive call: what happens to the CI's remaining relations, permanence of the deletion, and the role of the confirm parameter.

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?

Front-loaded with the single sentence stating the operation, which is good, but the remainder is a verbose Sphinx docstring block whose :type: lines merely restate typing already enforced by the schema. Structurally clear but not economical.

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 tool with 13 parameters, no output schema and no annotation beyond hints, the definition is thin. An agent cannot infer required-versus-optional parameter behavior, the confirm handshake, or the shape of the returned result from this text.

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 only 8%, so the description has to compensate. It documents className, sys_id and rel_sys_id with type and meaning, which covers the operative identifiers, but leaves roughly ten schema parameters (confirm, data, attributes, sysparm_query, inbound/outbound_relations, etc.) entirely unexplained.

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?

States a specific verb and resource: deleting the relation for a given CI. This cleanly distinguishes it from the sibling create_cmdb_relation and from instance-level deletes, though it does not name an explicit alternative.

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?

No when-to-use context, no exclusions, no guidance on how it relates to other relation or CMDB tools. The only conditional information is the MissingParameterError note, which is a failure mode rather than usage guidance.

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