Skip to main content
Glama

Neurarch

Trace model

trace_model
Read-only

Run the model once in Python (neurarch-trace) for a graph with real shapes; needs input dims. The way in for a real repository (static parsing reads 41%).

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": {
      "target": "<target>",
      "input": "<input>"
    },
    "name": "trace_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
depthNoDefault: leaves.
dtypeNoInput dtype (float32; long for hf:).
inputYesInput dims, batch first, one per input: ["1,3,224,224"]. ":long" for token ids.
targetYes"path/to/model.py:ClassName", "pkg.module:factory", or "hf:org/name".
save_toNoWrite the graph here (--write).
timeout_sNoSeconds (default 120).
model_pathNoFile, zoo:<id>, hf:<org/name>
model_sourceNoOptional: answer about model text passed inline (a .neurarch.json document or PyTorch source).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already cover safety (readOnly, non-destructive, open-world, non-idempotent), so the bar is lower. The description usefully adds that this actually executes the model in Python with real shapes and requires input dims, implying runtime cost and execution risk. It says nothing about failure modes, runtime limits (the 120s default), or what the resulting graph contains.

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?

Two short sentences with the core action front-loaded and no filler. The trailing parenthetical '(static parsing reads 41%)' is cryptic jargon that partially earns its place as differentiation but reads as an internal metric rather than agent-facing guidance.

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?

For a 9-parameter tool with no output schema, the description covers intent and the key prerequisite but never explains what the produced graph looks like, whether it is returned or only written via save_to, or how failures surface. The rich parameter schema offsets much of the gap, leaving it adequate but incomplete.

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?

Schema description coverage is 89%, so the schema already documents target, input, dtype, depth, save_to and timeout. The description only reinforces the 'input dims' requirement without adding format or syntax detail beyond what the schema provides, so the baseline of 3 applies.

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 concrete verb+resource: run the model once in Python via neurarch-trace to produce a graph with real shapes, which is distinct from the static-parsing siblings (e.g. lint_model, describe_architecture). The parenthetical '(static parsing reads 41%)' contrasts it against an alternative approach, though the phrasing is somewhat allusive rather than plainly naming a sibling.

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?

It implies when to reach for this tool ('The way in for a real repository') and sets a prerequisite ('needs input dims'), so the agent can infer it is the entry point when static parsing is insufficient. There is no explicit when-not guidance or named alternative among the many siblings, so selection still requires inference.

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.