Skip to main content
Glama

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

NameRequiredDescriptionDefault
jsonNoReport JSON (optional)
modeNoCreation mode: 'smart' (default) or 'standard' (legacy). Smart mode performs validation.smart
queryNoSQL query (for Query Report)
moduleNoModule name (optional)
scriptNoPython script (for Script Report)
disabledNoDisabled (1/0, optional)
is_standardNoIs standard (Yes/No, optional)
ref_doctypeYesReference DocType
report_nameYesReport name
report_typeYesReport type (Query, Script, etc.)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full burden for a create/mutation tool, and it discloses almost nothing: no permissions required, no side effects, no statement of what happens if a report with the same name exists, and no indication of what is returned. The only behavioral note ('Smart mode performs validation') lives in the schema, not the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short, front-loaded sentence with no filler. It is efficient, though the brevity comes at the cost of the information the other dimensions flag as missing.

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

Completeness2/5

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

For a ten-parameter, nested-object mutation tool with no annotations and no output schema, one sentence is far too thin. An agent still cannot tell which of query/script/json to supply for a given report_type, nor whether to prefer this over the smart-report siblings.

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%, so the schema already explains all ten properties, including the mode enum. The description adds no meaning beyond that — it does not explain how query, script, and json interact, which is the genuinely ambiguous part of this parameter set.

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 states a clear verb and resource ('Create a new Report in ERPNext') and signals that it is a unified entry point with a 'standard' vs 'smart' mode. However, 'unified' is left unexplained and it never says how this differs from the sibling create_smart_report, so the agent cannot confidently distinguish them from the definition alone.

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 only guidance is which mode value to pass, and that guidance duplicates the schema's enum description. There is no statement of when to use this tool versus create_smart_report, create_document, or run_report, and no prerequisites or exclusions are given.

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