Skip to main content
Glama

Hub Repository Details

hub_repo_details
Read-only

Get details for one or more Hugging Face repos (model, dataset, or space): card metadata, license, downloads, files, Space hardware/status, dataset configs, splits, columns and preview rows. Auto-detects type unless specified. For datasets, use operations: overview, dataset_structure, dataset_preview. Use dataset_structure first to discover configs, splits, sizes, and schema. Use dataset_preview only when config and split are known, unless the dataset has a single config/split.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo_ids": "<repo_ids>"
    },
    "name": "hub_repo_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRow count for dataset_preview. Defaults to 5 and is clamped to 1-100.
splitNoDataset Viewer split. Required for dataset_preview when the dataset has multiple config/split options. Discover via dataset_structure.
configNoDataset Viewer config. Required for dataset_preview when the dataset has multiple config/split options. Discover via dataset_structure.
offsetNoRow offset for dataset_preview. Defaults to 0.
repo_idsYesRepo IDs for (models|dataset/space) - usually in author/name format (e.g. openai/gpt-oss-120b)
repo_typeNoSpecify lookup type; otherwise auto-detects
operationsNoDetails to return. Defaults to ["overview"]. For datasets, prefer ["overview", "dataset_structure"] first; then call ["dataset_preview"] with config and split.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / limit / minimum
      Added value: +-9007199254740991
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
  2. Changed5 schema fields changed
    • addedInput schema / properties / config
      Added value: +{
      +  "description": "Dataset Viewer config. Required for dataset_preview when the dataset has multiple config/split options. Discover via dataset_structure.",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Row count for dataset_preview. Defaults to 5 and is clamped to 1-100.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Row offset for dataset_preview. Defaults to 0.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / operations
      Added value: +{
      +  "description": "Details to return. Defaults to [\"overview\"]. For datasets, prefer [\"overview\", \"dataset_structure\"] first; then call [\"dataset_preview\"] with config and split.",
      +  "items": {
      +    "enum": [
      +      "overview",
      +      "dataset_structure",
      +      "dataset_preview"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / split
      Added value: +{
      +  "description": "Dataset Viewer split. Required for dataset_preview when the dataset has multiple config/split options. Discover via dataset_structure.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds useful behavior beyond that: repo type is auto-detected when repo_type is omitted, and preview requires prior discovery of config/split. It does not mention pagination, throttling, auth requirements, or what happens with unknown repo IDs, so it goes beyond annotations but not far.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the capability and return contents in the first sentence, then spends the remainder on the dataset operations workflow, which is the non-obvious part. Every sentence carries information, though the trailing conditional clauses ('unless the dataset has a single config/split') make the last two sentences dense enough to require a second read.

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 seven parameters at full schema coverage, no output schema, and annotations carrying the safety profile, the description fills the remaining gaps: it lists what each operation returns, which substitutes for the missing output schema. It also covers the ordering constraint that would otherwise cause a failed dataset_preview call. Nothing essential to correct invocation 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?

Schema coverage is 100%, so the baseline is 3 and every parameter is already documented. The description still adds meaning: it explains the auto-detect fallback for repo_type and the ordering dependency that makes config and split usable (discover via dataset_structure, or omit only for single-config/split datasets). That dependency relationship is the piece the schema alone underplays.

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 ('Get details') plus the resource ('one or more Hugging Face repos') and enumerates the payload (card metadata, license, downloads, files, Space hardware/status, dataset configs/splits/columns/preview rows). That enumeration makes the tool's scope unmistakable. It stops short of naming the sibling hub_repo_search as the alternative for discovery, so differentiation is inferable rather than explicit.

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?

Gives real operational guidance: 'Use dataset_structure first to discover configs, splits, sizes, and schema' and 'Use dataset_preview only when config and split are known, unless the dataset has a single config/split' — a clear when/when-not rule with an explicit exception. The alternative it routes against is an operations value rather than a sibling tool, and it never says when to prefer this over hub_repo_search or hf_fs.

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.

Resources