Skip to main content
Glama

get_model_metadata

Retrieve metadata from a safetensors model file to inspect training details, configuration, resolution, and license information.

Instructions

Get metadata from a safetensors model file.

Useful for inspecting what a model was trained on, its configuration, resolution, license, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderYesModel folder name (e.g. "checkpoints", "loras", "text_encoders").
filenameYesModel filename within the folder.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states the action ('Get metadata') but does not disclose behavioral traits such as whether it is read-only (presumably), what happens on missing/invalid files, whether it requires network/local access, or any error handling. The description provides only surface-level intent without deeper behavioral context.

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 concise and front-loaded: a clear one-line purpose followed by an optional usability hint. Every sentence serves a purpose—defining the operation and indicating the kind of information obtainable. No wordiness or redundancy.

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?

Given the simple two-parameter tool, full schema coverage, and the presence of an output schema, the description covers the essential context. It could benefit from a note about error handling or prerequisites (e.g., folder must exist), but overall it is sufficient for a metadata retrieval operation. The lack of such details prevents a perfect score.

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 coverage is 100%; both parameters are described ('Model folder name', 'Model filename within the folder'). The description adds minimal extra meaning by mentioning 'safetensors' and the type of metadata, but it doesn't elaborate on the parameters beyond the examples in the schema. This meets the baseline for well-documented parameters, without adding significant semantic value.

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 clearly states the specific action: 'Get metadata from a safetensors model file.' It names the resource (safetensors model file) and the operation (get metadata), which distinguishes it from siblings like list_models (listing models vs. inspecting a single model's metadata). The added use-case line further clarifies intent.

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?

Provides clear context on when to use: 'Useful for inspecting what a model was trained on, its configuration, resolution, license, etc.' This implies it's the right tool for reading model metadata. It doesn't explicitly mention alternatives or when not to use, but the sibling list includes tools like list_models that serve different purposes, and the description makes the appropriate use case obvious.

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/halbert04/comfyui-mcp'

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