Skip to main content
Glama

validate_doctype

Validates a DocType definition with basic checks to catch configuration errors before saving or deploying custom ERPNext apps.

Instructions

Validate a DocType definition (basic checks)

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": {
      "def": "<def>"
    },
    "name": "validate_doctype"
  }
}

Input Schema

NameRequiredDescriptionDefault
defYesDocType definition

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden of behavioral disclosure and delivers only the phrase "basic checks." It does not say whether the tool is read-only, what kinds of problems are detected, how results or errors are reported (no output schema exists), or whether anything is persisted.

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?

One short, front-loaded sentence with no filler; the verb and resource lead immediately. Nothing in it is redundant or wasted.

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 tool with a nested-object input, no annotations, and no output schema, the description should explain at least the shape of the input and what a validation result contains. It provides neither, so an agent cannot predict the response or interpret a pass/fail outcome.

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% for the single required parameter, so the baseline is 3. However, the parameter is a nested object documented only as "DocType definition," and the description adds no detail about expected structure, required fields, or format, leaving the nested shape unexplained in both places.

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?

"Validate a DocType definition" states a specific verb (validate) and resource (DocType definition), which separates it from validate_script and validate_workflow by resource alone. It does not, however, explain how it differs from create_doctype or add_child_table_to_doctype in a workflow sense.

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 when-to-use guidance, no prerequisites, and no alternatives. The parenthetical "(basic checks)" hints that validation depth is limited, but it never says what is checked or when an agent should prefer a different validation path.

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