Skip to main content
Glama
dbt-labs
by dbt-labs

docs

Generate a comprehensive documentation website for your project using the dbt-mcp server. Automate the process of creating and maintaining up-to-date project documentation.

Instructions

The docs command is responsible for generating your project's documentation website.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the 'docs' tool. Executes `dbt docs generate` command using the shared _run_dbt_command utility.
    def docs() -> str:
        return _run_dbt_command(["docs", "generate"])
  • Registration of the 'docs' tool via ToolDefinition, specifying the handler function, description from prompts, and annotations indicating it's read-only, non-destructive, and idempotent.
    ToolDefinition(
        fn=docs,
        description=get_prompt("dbt_cli/docs"),
        annotations=create_tool_annotations(
            title="dbt docs",
            read_only_hint=True,
            destructive_hint=False,
            idempotent_hint=True,
        ),
    ),
  • Definition of the tool name constant ToolName.DOCS = "docs" used throughout the codebase for referencing the tool.
    DOCS = "docs"
  • Policy definition for the 'docs' tool, classifying its behavior as METADATA (no row-level data).
    ToolName.DOCS.value: ToolPolicy(
        name=ToolName.DOCS.value, behavior=ToolBehavior.METADATA
    ),
  • Inclusion of the 'docs' tool in the DBT_CLI toolset.
    ToolName.DOCS,
Install Server

Other Tools

Related 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/dbt-labs/dbt-mcp'

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