Skip to main content
Glama

Huggingface Search Models

huggingface_search_models
Read-onlyIdempotent

Search Hugging Face Hub models with filters for author, library (transformers/diffusers/...), language, pipeline_tag (text-generation/...), and tags; sort by downloads, likes, or trendingScore.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 20,
      "search": "bert",
      "library": "transformers"
    },
    "name": "huggingface_search_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoInclude extra fields (cardData, gated, etc.)
sortNodownloads | likes | trendingScore | lastModified | createdAt
tagsNoComma-separated tags
limitNo1-1000 (default 20)
authorNoFilter by org or user (e.g. "meta-llama")
searchNoFree-text, name / description
libraryNotransformers | diffusers | sentence-transformers | ...
languageNoISO language code, e.g. "fr", matched as a Hub tag, not validated
directionNo-1 (desc, default) | 1 (asc)
pipeline_tagNotext-generation | text-classification | image-classification | translation | ...

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / language / description
      Previous value: -"ISO language code, e.g. \"fr\" — matched as a Hub tag, not validated"New value: +"ISO language code, e.g. \"fr\", matched as a Hub tag, not validated"
    • changedInput schema / properties / search / description
      Previous value: -"Free-text — name / description"New value: +"Free-text, name / description"
  2. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds little beyond annotations: it does not mention gated-model handling, auth requirements, rate limits, or pagination (there is no offset param). That is acceptable given the annotation coverage but leaves real gaps.

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?

A single dense sentence with the resource and filter set front-loaded, then the sort options; no filler, no repetition of the title. Every clause carries actionable 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?

All 10 parameters are optional and fully documented in the schema, and an output schema exists, so the description need not explain returns. The one meaningful omission is any note that results are paginated/limited (e.g., limit semantics relative to total matches) or how gated models behave, but the definition is otherwise adequate 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%, so the baseline is 3; the description goes slightly beyond by grouping parameters into two functional clusters (filter vs. sort) with representative values like transformers/diffusers and text-generation, which helps the agent compose a query. It does not explain direction pairing with sort or the 'full' flag, but the schema covers those.

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 ('Search') and resource ('Hugging Face Hub models') and enumerates the key filters and sort modes, so the agent knows exactly what it retrieves. It does not explicitly contrast itself with huggingface_search_datasets or trending_models, so differentiation rests on the resource noun rather than an explicit statement.

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?

Usage is only implied: the presence of author, library, and pipeline_tag filters suggests exploratory/browse queries, but there is no stated when-to-use vs. when-to-use-get_model or trending_models guidance. No prerequisites or exclusions are mentioned.

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.