Skip to main content
Glama

Find models

find_models
Read-onlyIdempotent

Scan a directory for PyTorch nn.Module .py files and saved graphs, reporting which parse directly and which need trace_model. Run it first in a new repo.

Instructions

Find nn.Module .py files and saved graphs in a dir; says which parse and which need trace_model. Use first in a new repo.

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

Input Schema

NameRequiredDescriptionDefault
dirNoDefault: model's directory, else cwd.
max_filesNoCap on files opened (default 400).
model_pathNoFile, zoo:<id>, hf:<org/name>
model_sourceNoOptional: answer about model text passed inline (a .neurarch.json document or PyTorch source).

Output Schema

NameRequiredDescriptionDefault
modelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.22.2
    • changedInput schema / properties / dir / description
      Previous value: -"Default: the server model's directory."New value: +"Default: model's directory, else cwd."
  2. First observedv0.22.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and open-world behavior, so the bar is lower. The description still adds real value by stating that results classify files as parsable vs. requiring trace_model, which shapes what the agent does next; it doesn't discuss the file cap beyond what the schema says.

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 clauses, front-loaded with the discovery action and followed by the routing hint. Slightly telegraphic phrasing ("Find nn.Module .py files") but no wasted sentences.

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?

An output schema exists, so return values need no explanation, and the tool is a simple read-only discovery step. Purpose, sequencing, and the parse/trace distinction are all covered; only deep detail about cap behavior or inline model_source handling is absent.

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 100%, including the dir default and the max_files cap, so the schema carries parameter meaning. The description only loosely echoes directory scanning and adds no syntax details for model_path or model_source, so baseline 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 and resource: find nn.Module .py files and saved graphs in a directory, plus report which parse and which need trace_model. It explicitly contrasts with the trace_model sibling, so an agent can tell them apart without opening either 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?

"Use first in a new repo" gives a clear entry-point condition and implicitly positions trace_model as the follow-up for files that don't parse. No explicit when-not guidance, but the sequencing is unambiguous.

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