Skip to main content
Glama

smart_import_documents

Import ERPNext documents with validation, conflict resolution, and detailed per-document reporting.

Instructions

Import documents with validation, conflict resolution, and detailed reporting

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": "smart_import_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
docsYesArray of documents to import
doctypeYesDocType name
conflict_resolutionNoConflict resolution strategyskip
validate_before_importNoValidate documents before importing (1/0, optional, defaults to 1)
create_missing_doctypesNoCreate missing DocTypes if they don't exist (1/0, optional, defaults to 0)
preserve_creation_datesNoPreserve original creation dates (1/0, optional, defaults to 0)
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

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about whether imports are additive or destructive, what happens to existing records under each conflict strategy, or whether partial failures roll back. Listing "validation, conflict resolution, and detailed reporting" gestures at behavior without actually explaining it, so an agent must infer the risky parts.

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?

The single sentence contains no waste, but for a seven-parameter mutation tool it is under-specified rather than concise. Nothing is front-loaded beyond the verb, and no structure exists to separate the import step from the validation and conflict-handling behavior.

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?

Given seven parameters, a required document array, no annotations, and no output schema, the definition is too thin for the agent to call it safely. It never states what a successful or partial import returns, how detailed results are shaped despite the return_detailed_results flag, or what create_missing_doctypes does to the schema.

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%, so every one of the seven parameters, including the conflict_resolution enum and all the 1/0 boolean flags, is already documented in the schema. The description only echoes "validation" and "conflict resolution" and adds no format, ordering, or interaction semantics beyond that baseline.

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 names a specific verb and resource ("Import documents") and enumerates three capabilities: validation, conflict resolution, and reporting. It is clear what the tool does, but it never distinguishes this from the very similar sibling "import_documents" or "bulk_smart_create_documents", leaving an agent to guess which importer to select.

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 at all: no mention of when to prefer this over import_documents or bulk_smart_create_documents, no prerequisites, and no stated conditions such as required permissions or size limits. The only hint is the word "smart", which carries no operational meaning.

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