Skip to main content
Glama

get_doctype_meta

Retrieve detailed metadata for a specified ERPNext DocType, including field definitions, to inspect its structure before building or updating records.

Instructions

Get detailed metadata for a specific DocType including fields definition

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": "get_doctype_meta"
  }
}

Input Schema

NameRequiredDescriptionDefault
doctypeYesERPNext DocType name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; the verb "Get" implies a non-destructive read and it discloses that field definitions are among the returned data. It says nothing about permissions needed, behavior for unknown DocTypes, or how verbose the metadata is, so disclosure is partial rather than complete.

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?

One front-loaded sentence with no filler. The trailing phrase "including fields definition" is slightly awkward but carries genuine information about the payload, so it earns its place.

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

Completeness3/5

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

There is no output schema, so the description should characterize the return value; "detailed metadata" is vague about what is actually returned beyond fields. It is adequate for a simple one-parameter lookup but leaves an agent guessing about depth of detail and edge-case behavior.

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

Parameters4/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 ("ERPNext DocType name"), so the schema already defines the input. The description adds nothing beyond restating the target, which is appropriate at this coverage level.

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 gives a specific verb and resource ("Get detailed metadata for a specific DocType") plus the scope of the payload ("including fields definition"). It does not, however, distinguish itself from close siblings like get_doctype_fields or get_doctypes, leaving real ambiguity about which tool returns what.

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?

No when-to-use guidance is offered: nothing says when to prefer this over get_doctype_fields or get_doctypes, and no prerequisites or exclusions are stated. The agent must infer the distinction from the tool name alone.

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