cancel_document
Cancel a submitted document (set docstatus to 2)
How to use it
cancel_document is exposed by the Erpnext MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the cancel_document tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL ERPNEXT MCP SERVER LISTINGOther tools in Erpnext MCP Server (10)
Call an ERPNext/Frappe whitelisted server-side API method
Create a new document in ERPNext
Permanently delete a document
Get fields list for a specific DocType
Get a list of all available DocTypes
Get a single document by name, including all child tables
Get a list of documents for a specific doctype
Run an ERPNext report
Submit a document (set docstatus to 1)
Update an existing document in ERPNext