Skip to main content
Glama

Check a model

check_model
Read-onlyIdempotent

Check a model's text (YAML or JSON in the model spec, or DBML) with the studio, without saving it. Needs no API key.

    Errors say their line and column; fix them and check again before
    `create_project` or `save_model`. A model without errors is summarised
    (tables, columns), and the text columns that would still come out as
    generic fallback text are named (`table.column`): give each a generator
    type or an enum until none are left.
    

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

Input Schema

NameRequiredDescriptionDefault
textYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover safety (readOnlyHint, idempotentHint, closed world); the description adds the auth requirement (no API key), the non-persistence guarantee, the error format (line and column), and the contents of a successful result (table/column summary plus fallback-text columns). That is substantive behavior beyond what the structured fields declare.

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?

It is front-loaded with purpose and format, then workflow, then result semantics, with nearly every sentence carrying new information. The final sentence's remediation loop is dense but earned; the definition is only mildly longer than needed.

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 one-parameter validation tool with an output schema, this covers invocation, error handling, success output, and the follow-up remediation (assign generator types or enums). Nothing an agent needs to use it correctly is missing.

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% and the schema only types `text` as a string, but the description explains what that string actually is: YAML or JSON from the model spec, or DBML. It conveys the substance without spelling out the exact accepted grammar for each format.

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 gives a specific verb and resource ('Check a model's text') and names the accepted formats (YAML or JSON model spec, or DBML). It also states the key scope constraint 'without saving it', which separates it at a glance from save_model and create_project.

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

Usage Guidelines5/5

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

It explicitly routes the agent: fix reported errors and re-check 'before `create_project` or `save_model`', naming the alternatives and the condition that selects them. It also states it needs no API key, removing a common invocation question.

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