Skip to main content
Glama

ML Model Details

hf.hub.model_details
Read-onlyIdempotent

Get full metadata for a HuggingFace model — downloads, likes, tags, library, author, pipeline task, model card data. Use model_id from hf.models search (e.g. "meta-llama/Llama-3.3-70B-Instruct").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesFull model ID (e.g. "meta-llama/Llama-3.3-70B-Instruct", "stabilityai/stable-diffusion-xl-base-1.0")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description adds behavioral context by specifying the metadata scope and is fully consistent with the read-only read of the operation. No rate-limit or auth notes, but those are not critical given openWorldHint and the presence of an output schema.

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?

Two sentences with zero waste: the action and result fields are front-loaded, and the sourcing instruction follows naturally. Every sentence earns its place, and the inline example reinforces the schema pattern without duplication.

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

Completeness5/5

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

With a single required parameter fully documented in the schema, strong safety annotations, and an output schema present, the description covers what is needed. It adds the workflow link to hf.models search and summarizes the returned fields. Nothing an agent needs to call this tool correctly is missing.

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?

The input schema covers model_id at 100% with pattern, minLength, and two concrete examples, so the baseline is 3. The description adds workflow semantics beyond the schema by telling the agent where to obtain a valid model_id (hf.models search). This sourcing hint carries real value for correct invocation.

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?

States a specific action ('Get full metadata') on a specific resource (a HuggingFace model), and enumerates the exact content: downloads, likes, tags, library, author, pipeline task, model card data. This clearly distinguishes it from siblings like hf.hub.models (search) and hf_inference.nlp.* (inference). The description makes the tool's scope unambiguous beyond the name alone.

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?

The description explicitly instructs the agent to source model_id from hf.models search, which sequences the workflow and reinforces correct tool selection. It clearly implies this is the metadata-fetch step after a search, but does not explicitly state when not to use it or name inference tools as alternatives. The guidance is strong for the primary workflow, missing only explicit exclusions.

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.