create_smart_report
Create ERPNext reports using smart configuration for Query, Script, Custom, or Report Builder types; retained as a backward-compatible alias for create_report mode='smart'.
Instructions
[DEPRECATED] Use create_report with mode='smart' instead – kept for backward compatibility
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_smart_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | Report JSON configuration (optional) | |
| query | No | SQL query (for Query Report type) | |
| module | No | Module name (optional, defaults to 'Custom') | |
| script | No | Python script (for Script Report type) | |
| disabled | No | Whether report is disabled (1/0, optional, defaults to 0) | |
| is_standard | No | Is standard (Yes/No, optional, defaults to 'No') | |
| ref_doctype | Yes | Reference DocType for the report | |
| report_name | Yes | Report name | |
| report_type | Yes | Report type |