Skip to main content
Glama

inspect_model

Read-only

Page through tensor names, shapes, dtypes, and shards without loading weight data, so you can audit a checkpoint's structure before training or editing.

Instructions

Page through tensor names, shapes, dtypes, and shards without reading weight data.

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": "inspect_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
modelYes
offsetNo
containsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real value by disclosing that no weight data is fetched, implying a lightweight operation, but says nothing about pagination semantics (when to stop, total counts) or error behavior for a bad model name.

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?

A single front-loaded sentence with zero filler and no redundancy. Brevity is appropriate for a read-only metadata tool, though the one-line form leaves little room for the parameter guidance the 0% schema coverage calls for.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and annotations cover safety. However, with four parameters at 0% schema coverage and an unexplained `contains` filter, the description leaves an agent guessing on at least one input, making it only minimally complete for this complexity.

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 description coverage is 0%, so the description must carry the load. "Page through" signals limit/offset paging and the listed fields (names, shapes, dtypes, shards) map to what inspection returns, but the `contains` parameter remains entirely unexplained and the limit bounds (1-200, default 50) are only in the schema.

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?

"Page through tensor names, shapes, dtypes, and shards" states a specific verb and a concrete set of metadata resources, and "without reading weight data" implicitly contrasts it with weight-reading siblings such as read_tensor. It stops short of naming a sibling explicitly, so differentiation is inferred 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?

The phrase "without reading weight data" conveys the core usage context: this is the cheap metadata-only path when you don't need tensor contents. There is no explicit when-not, no named alternative, and no mention of prerequisites or what to do if the model is not found or is still loading.

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