Skip to main content
Glama

delete_attachment

Destructive

Delete an attachment from a ServiceNow record by its sys_id. Requires write access to the record.

Instructions

Delete an attachment from a record (requires WRITE_ENABLED=true)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
attachment_sys_idYessys_id of the attachment to delete
Behavior3/5

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

Annotations already indicate destructiveHint: true and readOnlyHint: false, so the destructive nature is known. The description adds the requirement for WRITE_ENABLED, which is helpful context. However, it does not disclose other potential behaviors like irreversibility or cascading effects.

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

Conciseness5/5

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

The description is extremely concise: a single sentence that conveys the purpose and a key requirement. There is no wasted text, and it is front-loaded with the core action.

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

Completeness4/5

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

For a simple delete operation with one parameter, the description covers the basic purpose and a critical prerequisite. It lacks detail about return values or error handling, but given the simplicity and no output schema, it is nearly complete.

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?

The single parameter attachment_sys_id has full schema coverage in the input schema (description: 'sys_id of the attachment to delete'). The description does not add any additional meaning or context beyond what the schema already provides. Baseline 3 is appropriate.

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

Purpose5/5

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

The description clearly states 'Delete an attachment from a record', specifying the action (delete) and resource (attachment from a record). It distinguishes from sibling tools like upload_attachment and list_attachments by the delete action and the required WRITE_ENABLED condition.

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 mentions a requirement (WRITE_ENABLED=true) but does not provide guidance on when to use this tool versus alternatives (e.g., when not to use it, or to use get_attachment_metadata or upload_attachment instead). There is no explicit context for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tedorigawa001/ServiceNow-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server