Skip to main content
Glama

bulk_smart_create_documents

Create multiple ERPNext documents in batches with validation, error handling, and progress tracking; continue past failed records and return detailed results.

Instructions

Bulk create documents with validation, error handling, and progress tracking

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>",
      "docs": "<docs>"
    },
    "name": "bulk_smart_create_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
docsYesArray of documents to create
doctypeYesDocType name
batch_sizeNoBatch size for processing (optional, defaults to 50)
continue_on_errorNoContinue processing on individual document errors (1/0, optional, defaults to 1)
validate_before_createNoValidate documents before creating (1/0, optional, defaults to 1)
return_detailed_resultsNoReturn detailed results for each document (1/0, optional, defaults to 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does surface real traits beyond the name — validation, per-document error handling, progress tracking — but leaves critical semantics unstated: whether partial failures leave documents created, whether validation aborts the whole batch, size limits, and permission requirements.

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

Conciseness4/5

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

A single front-loaded sentence with no filler, which is the right shape for a tool definition. It is arguably too thin for a six-parameter mutation tool, but that is a completeness issue rather than a verbosity one.

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?

This is a mutation tool with six parameters, no annotations, and no output schema, yet the description never explains what is returned — notably what return_detailed_results yields, or how progress tracking and error reporting are surfaced. The gaps are substantial relative to the tool's complexity.

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 100%, so every parameter including batch_size, continue_on_error, validate_before_create, and return_detailed_results is documented in the schema with defaults. The description adds no meaning beyond that, so the baseline of 3 applies.

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?

The description states a specific verb and resource ("Bulk create documents") and names three behaviors (validation, error handling, progress tracking), so an agent knows it is a batch-write operation. It does not, however, distinguish itself from the sibling bulk_create_documents, leaving the "smart" differentiator implicit.

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 explicit when-to-use or when-not-to-use guidance, and no mention of alternatives such as bulk_create_documents or import_documents. The agent must infer from the name that this is the batch path, and has no basis for choosing between the several bulk siblings.

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