Skip to main content
Glama

generate_form_schema

Generates a form schema for a specified ERPNext DocType, enabling AI assistants to render or validate the form structure.

Instructions

Generate a form schema for a DocType

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": {
      "doctype": "<doctype>"
    },
    "name": "generate_form_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
doctypeYesDocType name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description bears the full burden of behavioral disclosure and supplies almost none. It does not say whether generation is read-only or persists something, whether it fails on unknown DocTypes, or what the produced schema looks like.

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 single short sentence is front-loaded and free of filler, which is good. But the brevity comes at the cost of under-specification rather than efficiency — nothing is wasted because almost nothing is said.

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?

With no annotations and no output schema, the description is the only place an agent can learn what this tool returns or requires. That gap is significant for a generator tool whose whole value is the artifact it produces.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents it fully. The description adds only the implicit constraint that the name must refer to a DocType, which is marginal value beyond the structured field.

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 pairs a verb ("generate") with a resource ("form schema for a DocType"), so the general intent is graspable. However, it offers no differentiation from siblings like generate_dashboard_schema or generate_doctype_docs, and "form schema" is left undefined, so an agent cannot confidently distinguish the output this produces from the other generators.

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?

There is no when-to-use guidance, no mention of prerequisites (does the DocType need to exist first?), and no routing to alternatives in the sibling set. The agent must infer all selection criteria from the name alone.

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