Skip to main content
Glama

apply_domain_template

Generate a complete database schema from a pre-built domain template. Templates include all models, relations, indexes, and Prisma schema for common application domains.

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": {
      "template": "<template>"
    },
    "name": "apply_domain_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoTarget database (default: postgresql)
templateYesDomain template to apply
customModelsNoAdditional model names to include in the schema
outputFormatNoOutput format (default: prisma)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it omits the essentials for a generation tool: whether output is written to disk or only returned, whether existing schema/migrations are overwritten, and whether the target project must already exist. It only discloses template contents (models, relations, indexes, Prisma schema), which is a small fraction of the behavior an agent needs.

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?

Two sentences, zero filler, with the action and its distinguishing qualifier front-loaded before the supporting detail about template contents.

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 four-parameter generator with a fully documented schema and no output schema, the description covers what the produced artifact contains, which partly substitutes for a return-value section. The main remaining gap is the side-effect profile (file writes, overwrite behavior), which matters for a generation tool but is a single omission.

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% and all enums are documented in the schema, so the baseline is 3. The description adds nothing parameter-level — it does not explain how customModels merges with the template's built-in models or how outputFormat 'both' behaves, leaving the schema to do all the 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?

States a specific verb ('Generate') plus a specific resource ('complete database schema') and qualifies the source as a 'pre-built domain template', which implicitly separates it from free-form schema design tools. It does not name a sibling explicitly, so it stops short of a 5.

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

Usage Guidelines3/5

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

The phrase 'from a pre-built domain template' implies this is the tool for bootstrapping from a canned domain rather than designing a schema from scratch, but it never states when to prefer it over design_schema, convert_schema, or the many create_* sibling tools. No prerequisites or exclusions are given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.