Skip to main content
Glama

hf-model-search

Find machine learning models on HuggingFace Hub by keyword and task. Returns top results sorted by downloads or likes with model ID, author, and tags.

Instructions

Search HuggingFace Hub for ML models. Specify a keyword (e.g. 'bert', 'llama', 'stable diffusion') and optional task filter (e.g. 'text-classification', 'text-generation', 'image-classification'). Returns top results sorted by downloads or likes, including model ID, author, pipeline task, framework library, download count, likes count, and tags.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoSearch query — model name, architecture, or keyword (e.g. 'bert', 'llama', 'sentiment'). Defaults to 'language model'.
taskNoOptional pipeline task filter (e.g. 'text-classification', 'text-generation', 'image-classification'). Omit to search all tasks.
sortNoSort order. Default: downloads.
limitNoNumber of results to return (1–20). Default: 10.
Behavior3/5

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

With no annotations, the description must disclose behavioral traits. It explains what is returned and sorting options but omits potential rate limits, authentication needs, or pagination behavior. It is adequate but not comprehensive.

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 two efficient sentences with no redundancy. It front-loads the verb and resource, and every sentence adds necessary information.

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 no output schema, the description lists the returned fields (model ID, author, task, etc.) and mentions sorting. It does not explain pagination or limit behavior, but input schema covers limit. Sufficient for a search tool.

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?

Schema coverage is 100%, baseline 3. The description adds context for query and task with examples, and clarifies that sort can be 'downloads or likes', adding value beyond schema defaults.

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 explicitly states the tool searches the HuggingFace Hub for ML models, specifies example keywords and task filters, and lists the returned fields, clearly distinguishing it from sibling search tools like hn-search or research-paper-search.

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?

The description implies usage for finding HuggingFace models but does not explicitly contrast with alternatives or state when not to use it. Sibling tools include many search tools, so clearer guidance would improve selection accuracy.

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/thebrierfox/the-stall'

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