Skip to main content
Glama

create_doctype

Creates a new ERPNext DocType with defined fields, naming rules, and options using standard or smart validation mode.

Instructions

Create a new DocType 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": {
      "name": "<name>"
    },
    "name": "create_doctype"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the new DocType
fieldsNoArray of field definitions for the DocType
moduleNoModule name (optional, defaults to 'Custom')
autonameNoAuto-naming rule (e.g., 'field:name', 'naming_series:', 'autoincrement')
is_tableNoWhether this is a child table DocType (1 for yes, 0 for no)
title_fieldNoField to use as title
is_submittableNoWhether documents can be submitted (1 for yes, 0 for no)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a mutation tool. It does not disclose permission requirements, validation behavior, reversibility, error handling, side effects, or what happens when smart versus standard mode is used. The word 'unified' is not enough to clarify behavior.

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

Conciseness3/5

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

The description is a single short sentence and is front-loaded with the core action. However, it is arguably too sparse for a seven-parameter DocType creation tool with nested field definitions. There is no wasted text, but the brevity comes at the cost of necessary context.

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?

The tool is complex: it has seven parameters, required nested field definitions, no annotations, and no output schema. The one-sentence description does not cover when to use it versus sibling tools, the implications of smart versus standard mode, permissions, or side effects. It is materially incomplete for an agent to invoke it confidently.

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 input schema already documents all seven parameters in detail. The description's only parameter-related statement is 'use mode = standard | smart,' which restates schema information and does not clarify that mode appears within each field definition rather than at the top level. The baseline of 3 is appropriate because the schema does the substantive work.

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

Purpose4/5

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

The description states a specific verb and resource: 'Create a new DocType in ERPNext.' It also adds a hint that this is a unified tool using standard or smart mode, but it does not explicitly differentiate this tool from the sibling create_smart_doctype or create_child_table. The core purpose is clear, though sibling selection remains somewhat ambiguous.

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 description gives no explicit guidance on when to use this tool instead of alternatives such as create_smart_doctype, create_child_table, or create_document. It mentions mode values 'standard' and 'smart' but does not explain when to choose each mode or what trade-offs are involved. Usage is only implied, not directed.

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