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
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Method arguments as key-value pairs (optional) | |
| method | Yes | Dotted method path (e.g., erpnext.manufacturing.doctype.work_order.work_order.make_stock_entry) | |
| http_method | No | HTTP method to use (default: POST). Use GET for read-only methods like frappe.client.get_count. |