Skip to main content
Glama

model_structure

Read-onlyIdempotent

The model's structure as canonical .gsm text: model.yaml (axis, scenarios, sections) and one nodes/.yaml per section with every node's declaration and formula, no values. Pass section to get one section (and its subsections), with the prose any of them carries and each {{reference}} in it worked out (texts), and any row title carrying references as the reader sees it (titles); a large model refuses the whole and lists sections to ask for.

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": {
      "model": "<model>"
    },
    "name": "model_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel uid (`model_…`), from model_list.
sectionNoA section path such as `income` or `income.costs`; omit for everything.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description still contributes beyond them: it discloses that no computed values are returned, that references are resolved into `texts`, and that oversized models are rejected with a section list rather than truncated — a refusal behavior an agent must know to plan around. It does not mention size thresholds or auth requirements, keeping it short of a 5.

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?

The content is dense but the delivery is a single semicolon-chained sentence that is hard to parse on first read. It is front-loaded with the primary return shape, which helps. Splitting the section-mode behavior into its own sentence would cost nothing and improve scanability.

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?

There is no output schema, so the description carries the return-shape burden, and it does so by describing the file layout, what each file contains, and the extra `texts`/`titles` fields in section mode. For a two-parameter read tool with full annotation coverage, that is nearly sufficient. The main residual gap is not quantifying what counts as a 'large model'.

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 100%, so the baseline would be 3, but the description adds real meaning beyond the schema: `section` returns the section and its subsections, includes the prose they carry, resolves each `{{reference}}` into `texts`, and renders reference-bearing row titles as the reader sees them (`titles`). That is substantive semantics the schema's one-line parameter descriptions do not convey.

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?

The description uses a specific verb-plus-resource framing: it returns the model's structure as canonical .gsm text, decomposed as model.yaml (axis, scenarios, sections) plus one nodes/<section>.yaml per section containing declarations and formulas but no values. That is far more concrete than the name alone. It does not name or differentiate against plausible siblings like model_show, model_overview, or model_export, so an agent must infer the boundary itself.

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

Usage Guidelines3/5

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

Usage is implied through the `section` parameter: omit it for everything, supply it for one section plus subsections. The one genuinely useful routing rule is the failure case — a large model refuses the whole request and lists sections to ask for — which tells the agent how to recover. There is no explicit statement of when to prefer this over model_show or model_export, so guidance is context-implied rather than stated.

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