Skip to main content
Glama
ERPNext MCP Server

ERPNext MCP Server

by hatlabs

call_method

Invoke whitelisted ERPNext/Frappe server-side API methods with JSON arguments, using GET for reads or POST for writes; destructive methods are possible, so verify before calling.

Instructions

Call an ERPNext/Frappe whitelisted server-side API method. WARNING: This can invoke any whitelisted method including destructive operations — use with caution. Args are passed as JSON body (POST) or query params (GET), with keys matching the method's parameter names.

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": {
      "method": "<method>"
    },
    "name": "call_method"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoMethod arguments as key-value pairs (optional)
methodYesDotted method path (e.g., erpnext.manufacturing.doctype.work_order.work_order.make_stock_entry)
http_methodNoHTTP method to use (default: POST). Use GET for read-only methods like frappe.client.get_count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 burden. It usefully discloses that any whitelisted method can be invoked, including destructive operations, and explains how args are encoded for GET versus POST, but it omits permissions, authentication, error behavior, and return-value conventions.

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?

The description is front-loaded, compact, and structured around purpose, risk, and argument transport. Every sentence contributes useful information without repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-risk generic invoker with no annotations and no output schema, the description provides important warnings and transport semantics. However, it still lacks permission requirements, expected return behavior, and error handling, which an agent needs before invoking arbitrary server-side methods.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, including the method path example and http_method enum. The description still adds meaning by explaining that args are passed as JSON body for POST or query params for GET, with keys matching the method's parameter names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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: "Call an ERPNext/Frappe whitelisted server-side API method." It clearly identifies a generic method-invocation escape hatch, distinct from the document CRUD and reporting sibling tools.

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?

The description offers a caution, not usage guidance: it does not say when to prefer this tool over dedicated siblings such as create_document, get_document, or run_report, nor does it state when not to use it.

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