Skip to main content
Glama

create_smart_doctype

Create a DocType using smart defaults for fields, naming, and module setup; kept for backward compatibility. Use create_doctype with mode='smart' instead.

Instructions

[DEPRECATED] Use create_doctype with mode='smart' instead – kept for backward compatibility

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_smart_doctype"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the new DocType
fieldsNoField definitions (same as create_doctype)
moduleNoModule name (optional, defaults to 'Custom')
autonameNoAuto-naming rule
is_tableNoIs child table DocType (1/0)
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

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden; it usefully declares the tool's legacy/deprecated status, which is behavior an agent must know. It does not state whether the operation is identical to create_doctype(mode='smart'), whether it mutates schema irreversibly, or any permission requirements, so the burden is only partially met.

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?

A single sentence, front-loaded with the deprecation tag and the replacement, with zero filler. Every clause earns its place.

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

Completeness4/5

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

For a seven-parameter mutation tool this is a thin description, but the deprecation framing is the dominant information an agent needs and the schema covers parameters fully. A note confirming behavioral equivalence (or lack thereof) with create_doctype(mode='smart') would make it complete.

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 coverage is 100% with all seven parameters documented in the schema itself, so the baseline of 3 applies. The only parameter-adjacent note ('same as create_doctype' for fields) restates what the schema already says and adds no new meaning about defaults or validation.

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 never explicitly says 'creates a DocType', but the deprecation notice plus the named replacement (create_doctype with mode='smart') makes the operation and its lineage unambiguous. It also sharply distinguishes this tool from its live sibling, so an agent will not confuse the two.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives the exact when-not ('[DEPRECATED]') and the exact alternative including the argument to pass (create_doctype with mode='smart'), plus the only remaining reason to call it (backward compatibility). Nothing about routing is left to inference.

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