Skip to main content
Glama

schema_generate_docs

Generate complete database schema documentation directly from your model definitions. Supports Markdown, DBML, and Mermaid output formats for easy sharing and visualization.

Instructions

Generate comprehensive database schema documentation from your models

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo
models_pathYesPath to model/schema definitions
output_formatNomarkdown
Behavior2/5

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

With no annotations provided, the description carries the full burden of explaining side effects and output behavior. It only says documentation will be generated; it does not state whether files are written, whether existing content is replaced, whether an API key is required, or what the tool returns. This is a meaningful gap for a generation tool.

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?

The description is a single sentence with no filler and front-loads the primary action and resource. It is appropriately concise, though 'comprehensive' adds little concrete meaning.

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 no annotations and no output schema, the description is too thin. The agent cannot tell where the documentation goes, what the api_key is for, or whether calling the tool has side effects. More context is needed for reliable invocation.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description must compensate for undocumented parameters. It adds 'from your models' but that just restates models_path's schema description. It does not explain api_key or clarify output_format beyond what the enum already reveals, leaving the purpose of api_key ambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb ('Generate'), a specific resource ('database schema documentation'), and an input source ('from your models'). It distinguishes this tool from sibling tools like schema_generate_migration and schema_validate_migration by focusing on documentation generation.

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 guidance about when to use this tool versus alternatives such as schema_generate_migration, arch_generate_docs, or data_generate_from_schema. The phrase 'from your models' implies a prerequisite, but the description never explains when a user should choose this tool over a sibling.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/barnburner121/claude-plugin-marketplace'

If you have feedback or need assistance with the MCP directory API, please join our Discord server