create_report
Create new ERPNext reports in standard or smart mode, including Query and Script reports, with optional validation and configuration for report names, reference DocTypes, and report types.
Instructions
Create a new Report in ERPNext (unified – use mode = 'standard' | 'smart')
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": {
"report_name": "<report_name>",
"ref_doctype": "<ref_doctype>",
"report_type": "<report_type>"
},
"name": "create_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | Report JSON (optional) | |
| mode | No | Creation mode: 'smart' (default) or 'standard' (legacy). Smart mode performs validation. | smart |
| query | No | SQL query (for Query Report) | |
| module | No | Module name (optional) | |
| script | No | Python script (for Script Report) | |
| disabled | No | Disabled (1/0, optional) | |
| is_standard | No | Is standard (Yes/No, optional) | |
| ref_doctype | Yes | Reference DocType | |
| report_name | Yes | Report name | |
| report_type | Yes | Report type (Query, Script, etc.) |