Skip to main content
Glama

Save the model

save_model
DestructiveIdempotent

Replace a project's model with text, keeping everything else (its metrics file, dashboards, settings and canvas).

    The model is checked first; one with errors is not saved, 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 stays as the project has it. Says how the
    tables changed, and whether the project's
    metrics file still reads against the new model. Needs a key with save
    access.
    

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": {
      "project_id": "<project_id>",
      "text": "<text>"
    },
    "name": "save_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say destructive/not-readonly/idempotent; the description adds substantial depth beyond them — exactly what is preserved on replace, the validation-gate behavior, DBML conversion, `run` block effects on seed/rows/as-of day/locale and that omitted fields are left untouched, plus the required save-access key.

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

Conciseness4/5

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

Front-loads the core replace action and preservation contract before drilling into validation, DBML and `run` semantics. The final two sentences are slightly run-on and the reply-content remark is partially redundant with the output schema, but nothing is wasted.

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

Completeness5/5

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

For a destructive two-parameter write with an output schema, this covers the operation, side effects, validation failure mode, auth requirement, and the field-level `run` semantics an agent needs to call it correctly.

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

Parameters4/5

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

Schema coverage is 0%, so the description must carry the load; it explains that `text` is the model document (possibly DBML, possibly containing a `run` block) far beyond the bare 'Text' schema title. `project_id` is only implied by 'a project's model' and never explicitly characterized.

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?

States a specific verb and resource ('Replace a project's model with `text`') and immediately scopes what is untouched (metrics file, dashboards, settings, canvas), which cleanly separates it from save_metrics and save_dashboard.

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?

Gives clear operating context: the model is validated first and a model with errors is not saved, with errors returned instead, which implies you need not pre-check. It never explicitly names check_model as the alternative for validation-only workflows, leaving that routing to inference.

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