Skip to main content
Glama

bulk_delete_documents

Delete multiple ERPNext documents in one operation by specifying the DocType and an array of document names or IDs.

Instructions

Bulk delete documents

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "doctype": "<doctype>",
      "names": "<names>"
    },
    "name": "bulk_delete_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesYesArray of document names/IDs
doctypeYesDocType name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full burden and discloses nothing. For a destructive bulk operation it omits whether deletion is permanent, whether it requires elevated permissions, how partial failures are handled, and any size limits on the names array.

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?

Three words with no waste, but the brevity reflects under-specification rather than economy. There is no front-loaded context an agent could act on beyond the obvious.

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?

A destructive, multi-record tool with no annotations, no output schema, and a one-line description leaves the agent without safety, permission, or failure-mode context. This is far short of what the operation's risk level demands.

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 description coverage is 100% — both doctype and names are documented in the schema, including that names is an array of document names/IDs. The description adds no meaning beyond that, which is the baseline expectation when the schema does the work.

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?

"Bulk delete documents" is a restatement of the tool name and nothing more. It conveys a verb and resource, but adds no scope, distinguishing detail, or sibling differentiation (e.g., versus delete_document for single-record removal).

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 guidance: nothing says when bulk deletion is preferable to repeated delete_document calls, whether it is transactional, or what prerequisites exist. An agent must infer usage entirely from the name.

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