Skip to main content
Glama
ERPNext MCP Server

ERPNext MCP Server

by hatlabs

submit_document

Submit an ERPNext document by setting its docstatus to 1. This action is irreversible; submitted documents can only be cancelled, not returned to draft.

Instructions

Submit a document (set docstatus to 1). This is irreversible — submitted documents can only be cancelled, not reverted to draft.

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

Input Schema

NameRequiredDescriptionDefault
nameYesDocument name/ID
doctypeYesERPNext DocType

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers the single most important trait: the operation is irreversible and the only recourse is cancellation. It does not mention required permissions, validation failures, or downstream side effects (ledger/stock entries), so it is strong but not exhaustive for a mutation.

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?

Two short sentences, zero filler, with the core operation stated first and the irreversible consequence immediately after. Nothing could be removed without losing information.

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 two-parameter mutation with no output schema, the definition covers what it does and the key risk. Minor gaps remain around error behavior and permissions, but an agent has enough to decide and invoke correctly.

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 the schema already documents both 'doctype' and 'name'. The description adds no extra meaning about these parameters (e.g., that doctype must be a submittable DocType), so baseline 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?

Names a specific verb and resource and defines the domain-specific meaning ('set docstatus to 1'), which an agent could not infer from the name alone. It does not explicitly name a sibling for contrast, but the mention of cancellation implicitly separates it from cancel_document.

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

Usage Guidelines3/5

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

No explicit statement of when to use this versus update_document or create_document; the ordering is only implied. The sentence about cancelled-not-reverted implies cancel_document is the remedy path, which is useful but indirect guidance.

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