Skip to main content
Glama

Search Hf Models

search_hf_models

Search Hugging Face Hub for open-source AI models by task or keyword and filter results by GPU VRAM limits and commercial-use licensing.

Instructions

Search for open-source AI models on Hugging Face Hub with hardware/VRAM requirements.

When to use:

  • Looking for ML/AI models for a specific task (e.g. 'automatic-speech-recognition', 'text-to-speech').

  • User has a local GPU limit (e.g. max_vram_gb=12.0) or needs commercial licensing.

Input Schema

NameRequiredDescriptionDefault
taskNoOptional pipeline_tag (e.g., 'automatic-speech-recognition', 'voice-activity-detection').
limitNoMax candidates to return (default: 8).
queryYesModel keyword (e.g., 'whisper', 'diarization', 'qwen').
max_vram_gbNoHardware ceiling in GB. Models exceeding this memory baseline are filtered out.
commercial_useNoTrue applies penalties for CC-BY-NC or custom restrictive licenses.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden, and it delivers real behavioral context: results are annotated with VRAM/hardware requirements, max_vram_gb hard-filters candidates, and commercial_use applies ranking penalties rather than hard exclusion. A read-only search is self-evident from the verb; what's still unstated is ordering/pagination of the returned candidate list.

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 short blocks: a one-line statement of what is searched and how results are enriched, then a tight bulleted when-to-use list. Front-loaded, no repetition of schema content, nothing wasted.

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?

For a 5-parameter filtered search with a full output schema, the description plus schema covers what an agent needs to call it. The only gap is competitive positioning against search_hf_spaces, which the description leaves to the tool names.

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% and each parameter already carries its own explanation, so the baseline is 3. The description reinforces meaning by tying max_vram_gb and commercial_use to concrete user situations, but adds no syntax, format, or edge-case detail beyond the schema.

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 specific verb and resource ('Search for open-source AI models on Hugging Face Hub') plus an unusual differentiator: results carry hardware/VRAM requirements. The resource is distinct enough from siblings search_hf_spaces and search_github_repos that an agent can route correctly, but the description never names those alternatives explicitly.

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 'When to use' block gives concrete trigger conditions with worked examples (task types like 'automatic-speech-recognition', a max_vram_gb ceiling, commercial licensing needs). It lacks an explicit when-not or a pointer to search_hf_spaces for spaces, so the agent must infer the boundary, but the positive guidance is strong.

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