Skip to main content
Glama

get_model_tree

Read-onlyIdempotent

Retrieve the read-only model tree of a COMSOL model to inspect its geometry, materials, physics, mesh, and study structure without modifying or solving it.

Instructions

Phase 1 read-only Inspector projection: get_model_tree. Same explicit status/identity schema as inspect_current_model. For custom limits use that tool with sections. Does not change or solve the model.

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_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
model_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description's "read-only" and "Does not change or solve the model" largely restate those hints rather than adding new behavior; the only extra context is the "Phase 1" framing, and nothing describes what the projection actually contains or how large it might be.

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?

It is short (three sentences) with no obvious padding, but the leading clause is jargon ("Phase 1 read-only Inspector projection") and spends the front-loaded position restating the tool name instead of stating the resource returned. Sentence order is serviceable but not optimized for scanning.

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 zero-required-parameter, single-parameter read tool with full annotation coverage and no output schema, the description supplies enough for an agent to invoke it safely, and "read-only" claims are corroborated by the hints. The remaining gap is parameter meaning and expected return content, which leaves it slightly under-specified.

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

Parameters2/5

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

Schema description coverage is 0% for the single model_name parameter, which defaults to null, so the description carries the full explanatory burden — but it says nothing about the parameter at all. An agent cannot tell from the definition whether null means the current model, whether an arbitrary model can be named, or what forms are accepted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Phase 1 read-only Inspector projection" gestures at a read of model structure, and the name plus "Inspector projection" implies a tree/hierarchy view, but the sentence never plainly states that it returns the model's tree/structure. It does distinguish itself somewhat from inspect_current_model by claiming the "same explicit status/identity schema", yet the actual resource and output shape remain implied rather than stated.

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?

There is one concrete routing rule: "For custom limits use that tool with sections", which names sibling inspect_current_model and the condition selecting it. That is real but narrow guidance; nothing says when get_model_tree itself is the right choice versus model_inspect, model_list, or the other inspection siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools