Skip to main content
Glama

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

NameRequiredDescriptionDefault
jsonNoReport JSON configuration (optional)
queryNoSQL query (for Query Report type)
moduleNoModule name (optional, defaults to 'Custom')
scriptNoPython script (for Script Report type)
disabledNoWhether report is disabled (1/0, optional, defaults to 0)
is_standardNoIs standard (Yes/No, optional, defaults to 'No')
ref_doctypeYesReference DocType for the report
report_nameYesReport name
report_typeYesReport type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden, yet it only discloses deprecation status. It says nothing about the fact that this is a mutation, what gets persisted, whether it requires elevated permissions, or what happens on failure — all material for a 9-parameter creation tool.

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?

A single short sentence with the deprecation marker front-loaded and the replacement immediately following. There is no wasted wording, and the most decision-relevant information appears first.

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

Completeness4/5

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

For a deprecated tool with full schema coverage and no output schema, the critical need is telling an agent to route elsewhere, which it does. The remaining gap is that it never explains the creation behaviour for callers who must keep using it for backward compatibility.

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

Parameters3/5

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

Schema description coverage is 100%, including descriptions for all 9 properties and enums for report_type and is_standard, so the schema does the semantic work. The description adds nothing about parameters beyond mentioning the replacement's mode argument, which is baseline behaviour.

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

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states what the tool does — that it creates a report record — and relies on the name plus the '[DEPRECATED]' tag. It does clearly identify the successor (create_report with mode='smart'), which lets an agent place the tool, but the actual verb+resource is only implied by the name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Strong routing signal: it names the preferred alternative and the exact mode argument that replaces it, and 'kept for backward compatibility' implies this should only be used by legacy callers. It stops short of an explicit 'do not call for new work' instruction, but the direction is unambiguous.

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