Skip to main content
Glama

Repo Search

hub_repo_search
Read-only

Search Hugging Face repositories with a shared query interface. You can target models, datasets, spaces, or aggregate across multiple repo types in one call. Include links to repositories in your response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNoSort order (descending): trendingScore, downloads, likes, createdAt, lastModified
limitNoMaximum number of results to return per selected repo type
queryNoSearch term. Leave blank and specify sort + limit to browse trending or recent repositories.
authorNoOrganization or user namespace to filter by (e.g. 'google', 'meta-llama', 'huggingface').
filtersNoOptional hub filter tags. Applied to each selected repo type (e.g. ["text-generation"], ["language:en"], ["mcp-server"]).
repo_typesNoRepository types to search. Defaults to ["model", "dataset"]. space uses keyword search via /api/spaces.

TDQS

A4.4/5.0
Behavior4/5

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

The description adds context beyond the annotations by stating that the tool can aggregate across multiple repo types and that responses should include links to repositories. This is useful behavioral information, though it doesn't disclose details like rate limits or auth requirements, which are covered by annotations.

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 sentences, front-loaded with the verb and resource. The first sentence defines the tool, and the second elaborates on scope and response format. Every clause is purposeful, with no wasted words.

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?

There is no output schema, but the description hints at the output by instructing the agent to include links to repositories. It covers the main capability (searching across repository types) and leaves parameter details to the schema. This is reasonably complete for a search tool, though it could mention sorting/limiting, which the schema already documents.

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 schema covers all 6 parameters with descriptions (100% coverage), so the baseline is 3. The description enhances the repo_types parameter by explaining the ability to target models, datasets, or spaces and aggregate across multiple types in one call, adding meaning beyond the schema's enum list.

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 'Search Hugging Face repositories' with a specific verb and resource. It also differentiates from siblings by mentioning targeting models, datasets, and spaces or aggregating across multiple repo types, making the purpose unambiguous.

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 provides clear context that this tool is for searching across repo types and can aggregate multiple types in one call. It does not explicitly name alternatives or exclusions, but the context of a shared query interface and the sibling names (e.g., hub_repo_details) make the appropriate usage evident.

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.

TDQS

A3.8/5.0
Disambiguation2/5

hf_fs is a multi-purpose tool with search, ls, stat, and cat subcommands that overlap significantly with hub_repo_search and hub_repo_details. An agent could easily select the wrong tool for searching repos or retrieving details, as both hf_fs and hub_repo_search expose search capabilities and both hf_fs's stat and hub_repo_details provide metadata.

Naming Consistency2/5

The tool names use inconsistent prefixes: 'hf_fs' and 'hf_whoami' versus 'hub_repo_details' and 'hub_repo_search'. This creates two naming conventions (hf_ vs hub_repo_), and hf_fs does not follow the descriptive pattern of the other tools.

Tool Count3/5

With only 4 tools, the count is not excessive, but hf_fs is overloaded with many subcommands while the other tools are narrowly scoped. This makes the tool distribution uneven, though the total number is within a reasonable range.

Completeness3/5

The set covers read-only operations well: searching, listing, reading files, retrieving repo details, and checking auth. However, there are no write operations (create, update, delete) for repositories or files, and dataset preview is only available through hub_repo_details, which might be a gap for dataset-focused workflows.

Resources