Skip to main content
Glama

model_inspect

Read-onlyIdempotent

Inspect ONNX models without running inference to retrieve shapes, opset, parameter count, operators, size, and dynamic inputs.

Instructions

Inspect an ONNX model without running inference: shapes, opset, parameter count, operators, size and dynamic inputs.

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

Input Schema

NameRequiredDescriptionDefault
modelYesAbsolute path to the .onnx model file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context by stating that no inference is executed, which tells the agent this is a cheap, side-effect-free metadata read rather than a compute-heavy run. It does not mention failure behavior for invalid or missing files.

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

Conciseness5/5

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

A single front-loaded sentence with the key constraint ('without running inference') placed early and a compact enumeration of returned information. No redundant or filler wording.

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 one-parameter, read-only inspection tool with no output schema, the description usefully lists what the inspection returns, which is the main thing an agent needs. Minor gaps remain around error behavior and output structure, but nothing essential to invoking it correctly is missing.

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

Parameters3/5

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

There is a single parameter and schema description coverage is 100%, with the schema already stating 'Absolute path to the .onnx model file'. The description only reinforces that the input is an ONNX model and adds no format or path-resolution detail, so the baseline of 3 applies.

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 (inspect) and resource (an ONNX model) and enumerates exactly what is reported: shapes, opset, parameter count, operators, size and dynamic inputs. The phrase 'without running inference' separates it from the sibling benchmark tools, which run models, so an agent can choose correctly without opening the schema.

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?

The 'without running inference' clause gives a clear condition for selecting this tool over the benchmarking siblings, implying static metadata inspection rather than execution. It stops short of naming an alternative tool explicitly or stating when-not to use it, so it falls just 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.