Skip to main content
Glama

List tensors

list_tensors

Inspect tensor names, shapes, and storage types in local GGUF or safetensors model files. Filter results by substring to focus on specific layers or components.

Instructions

Tensor names, shapes, and storage types inside a model file. Filter by substring (e.g. 'attn' or 'blk.0').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to a .gguf or .safetensors file, a *.safetensors.index.json, or a model directory
limitNoMax tensors to return
filterNoCase-insensitive substring to filter tensor names
Behavior2/5

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

Since no annotations are provided, the description carries the full transparency burden. It describes the output fields and filtering but does not state whether the operation is read-only, requires special permissions, or how it behaves across different file types.

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?

The description is only two short sentences, front-loaded with the tool's purpose and followed by a concise filtering example. No wasted words.

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?

The tool is a simple listing operation with no output schema. The description adequately covers output and filtering, but lacks guidance on when to choose this tool over siblings, leaving a completeness gap.

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%, so the baseline is 3. The description adds a useful filter example ('attn' or 'blk.0') and clarifies the output structure, but does not substantially expand parameter meanings beyond what the schema already provides.

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?

The description clearly states that the tool lists tensor names, shapes, and storage types from model files, and it mentions substring filtering. However, it does not explicitly distinguish itself from sibling tools like inspect_model or get_metadata.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use list_tensors versus sibling tools. The only usage hint is a filtering example, which relates to the filter parameter, not tool selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arose26/gguf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server