Skip to main content
Glama

Create a project

create_project

Create a project in the studio from a model, and optionally its metrics file.

    `model_text` is YAML in the model spec or DBML. From a plain-English
    description of a business, DBML is the quick way. Write it straight away,
    but run the checklist first: every foreign key `not_null` unless the
    relationship is really optional; every text column given a generator
    type or an enum (the fallback report in `check_model` must be empty);
    categories as enums, with `weights` where not uniform; `when` for
    columns that only apply in some states; `after` for dates that follow
    another date; `min`/`max` and a `distribution` on numbers; `run.locale`
    matching the country. This checks the model and says what to fix:

        Table customers {
          id int [pk]
          name varchar
          email varchar
          created_at timestamp
        }
        Table orders {
          id int [pk]
          customer_id int [not null, ref: > customers.id]
          status varchar [note: '{"weights": {"paid": 70, "refunded": 5, "shipped": 25}}']
          total decimal(10,2) [note: '{"min": 5, "max": 400}']
          ordered_at timestamp
        }

    Pasted DDL or a dbt schema.yml: rewrite it as DBML like this.
    `get_model_guide` has the hints that shape values (the JSON notes).

    Both are checked first; a file with errors creates nothing, and the
    errors come back instead. DBML is saved as the model document it
    converts to. A `run` block in the model sets the project's seed, rows a
    table, rows per table, as-of day and locale (the reply says which it
    took); what it leaves out starts at 100 rows a table, seed 42, dates
    anchored on today. Returns the new project's id (for every other tool)
    and its studio URL. Next: `get_metrics_guide`, `check_metrics`,
    `save_metrics`. Needs a key with save access that is not limited to one
    project; the plan's project limit applies.
    

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>",
      "model_text": "<model_text>"
    },
    "name": "create_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
model_textYes
metrics_textNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: both inputs are validated first and 'a file with errors creates nothing, and the errors come back instead'; DBML is saved as the converted model document; run-block defaults are spelled out (100 rows per table, seed 42, dates anchored on today) and the reply reports which values were taken. It also discloses authorization ('a key with save access that is not limited to one project') and the plan's project limit, which annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the ordering (input format → checklist → error behavior → run defaults → returns → next steps) is logical. However, the embedded modeling checklist and example DBML duplicate subject matter the description itself points to in get_model_guide and check_model, making the text dense and partially off-topic for a tool-selection decision.

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?

Auth requirements, quota limits, validation-failure behavior, run-block defaults, and follow-up tools are all covered, which is the right depth for a creation tool. Output schema exists, so restating the returned id and studio URL is redundant but harmless; the real gap is the undocumented `name` parameter and metrics_text format.

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?

With 0% schema coverage the description must carry all three parameters. It does an excellent job on model_text (accepted formats, spec vs DBML, conversion of DDL/dbt, validation checklist) and notes metrics_text is optional, but never states its expected format. The required `name` parameter is not mentioned at all – no naming rules, uniqueness, or slug behavior.

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?

First sentence gives a specific verb and resource: 'Create a project in the studio from a model, and optionally its metrics file.' This is a clear statement with scope (model + optional metrics), but it never distinguishes itself from the sibling create_example_project, so an agent has no textual basis for choosing between them.

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

Usage Guidelines4/5

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

Strong routing is provided on the downstream side: 'Next: get_metrics_guide, check_metrics, save_metrics', plus 'get_model_guide has the hints that shape values' and the instruction to run the checklist so check_model's fallback report is empty. It also tells the agent to rewrite pasted DDL or dbt schema.yml as DBML. What is missing is an exclusion clause – when not to call this (e.g., versus create_example_project or when a project already exists).

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.

Resources