Skip to main content
Glama

Guide to writing a model

get_model_guide
Read-onlyIdempotent

How to write a model, as markdown: model2data's open model spec (https://github.com/JB-Analytica/model2data/blob/main/model2data/spec/README.md), with examples, then what the studio adds. Read it first when building a project: the model comes before metrics and dashboards. Needs no API key.

    Without `section` it leaves out the parts a first model rarely needs
    (versioning, every check, incremental days, history, defects, ...) and
    ends with their names; pass one as `section` to read it, or `all` for
    the whole spec.
    

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_model_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault
sectionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / section
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Section"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description contributes extra context: no API key needed, and the default response deliberately omits advanced sections while ending with their names. That is useful but narrow, and nothing is said about size or length of the returned markdown.

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-loaded with the core purpose and the spec URL, then the usage cue, then the parameter behavior. The sentences each carry information, though the multi-clause structure around the URL and parenthetical example list makes it slightly denser than necessary.

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?

For a read-only documentation tool with an output schema present, the description covers purpose, timing, credential requirements, and the one parameter's default and special value. The remaining gap is minor: no indication of response size or how many sections exist, which would help an agent decide between the default and 'all'.

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 names 'section' as an optional string, so the description carries the full burden and does well: it explains that omitting section returns a trimmed guide ending with the list of omitted section names, and that a listed name or 'all' retrieves more. It stops short of enumerating valid values, instead teaching the agent to discover them from the default output.

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?

States a specific verb and resource: returns markdown documentation for writing a model, covering model2data's open model spec plus studio additions. It is distinguishable from the sibling guide tools (get_dashboard_guide, get_metrics_guide) by its subject matter and by the note that the model precedes metrics and dashboards, though it never names a sibling explicitly.

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 timing guidance: 'Read it first when building a project' because the model comes before metrics and dashboards, which positions it relative to downstream tools. It does not name an alternative tool or state when to skip it, keeping it short of a 5.

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