Skip to main content
Glama

Delete attachment

servicenow_delete_attachment
DestructiveIdempotent

Delete an attachment from a ServiceNow table record by specifying the record and attachment identifiers, with explicit confirmation for the destructive action.

Instructions

Invoke the delete_attachment operation.

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

Input Schema

NameRequiredDescriptionDefault
dataNo
sys_idNo
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
file_nameNo
table_nameNo
content_typeNo
table_sys_idNo
encryption_contextNo

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

D1.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, openWorldHint=true, and readOnlyHint=false, so the safety profile is fully covered by structured data. The description contributes nothing beyond that — no statement about permanence, permissions required, or what happens when an attachment is not found — so it does not contradict the annotations but adds no value.

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

Conciseness2/5

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

The single sentence is brief, but its brevity is under-specification rather than economy — it conveys no information an agent could not derive from the name. There is no structure for an agent to front-load a decision from.

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

Completeness1/5

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

For an irreversible, destructive tool with 8 loosely documented parameters, no output schema, and no required-parameter guidance, the description supplies none of the information needed to call it safely. An agent has no basis to choose the correct identifier combination or to reason about the confirm flag.

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

Parameters1/5

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

With 8 parameters and only 13% schema description coverage, the description must compensate and instead says nothing about any parameter. Critical fields like sys_id, table_sys_id, table_name, file_name, and encryption_context are left entirely unexplained, and the confirm flag's role in a destructive operation is never mentioned.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description, "Invoke the delete_attachment operation," only restates the tool name and title in tautological form. It does add the verb 'delete' and the resource 'attachment', but gives no scope, no target object, and nothing that distinguishes it from sibling delete tools such as servicenow_delete_table_record or the upload/get attachment tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisite, and no mention of alternatives. It does not say which identifier (sys_id vs. table_sys_id plus file_name) selects an attachment, nor when a user should instead call the get or upload attachment siblings.

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