Skip to main content
Glama

Open models by task (Hugging Face)

ai_models_by_task
Read-onlyIdempotent

Most downloaded (30 d), liked or trending open models for a task from the Hugging Face Hub API: items[] {id, url, downloads_30d, likes, trending_score, license, license_class, commercial_ok, library}; license=permissive|commercial|copyleft|restricted|custom or a license id (mit, apache-2.0). Tasks: image-classification, speech-to-text, ocr, embeddings, reranking, object-detection, text-to-speech, text-to-image, translation, sentiment… $0.002/call. Use to pick an open model for a task (speech-to-text, OCR, image classification, embeddings…) by real downloads and license.

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": {
      "task": "<task>"
    },
    "name": "ai_models_by_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo
taskYes
limitNo
licenseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive, so the safety profile is covered. The description adds genuinely useful context beyond that: a $0.002/call price signal, the exact item fields returned, and the meaning of license_class/commercial_ok. It does not mention pagination or result-count defaults, leaving a small gap.

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?

The scope and ranking basis are front-loaded, and the dense semicolon-separated layout packs field list, license vocabulary, task list, and price into a short block. It is efficient, though the long item-field and task enumerations make it read more like a reference blob than prose.

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 no output schema, the description compensates by enumerating the returned item fields, and it covers the pricing, license-filter semantics, task vocabulary, and ranking modes. For a single-required-parameter read-only lookup, an agent has everything needed to invoke it correctly.

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 description coverage is 0%, so the description must carry the load, and it largely does: it explains the sort enum (downloads 30d / likes / trending), enumerates valid task values, and defines the license filter vocabulary (permissive|commercial|copyleft|restricted|custom or a specific license id such as mit, apache-2.0). Only the limit parameter receives no explanation beyond the schema's own bounds.

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?

The description states a specific verb and resource: listing open models for a given task from the Hugging Face Hub API, with the ranking basis (downloads over 30 days, likes, or trending). It is clearly narrower than the sibling ai_models, though it never explicitly contrasts with that tool, so the differentiation is implied rather than stated.

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?

"Use to pick an open model for a task (speech-to-text, OCR, image classification, embeddings…)" gives concrete when-to-use context with example scenarios. There are no explicit exclusions or named alternatives (e.g., when to use the general ai_models tool instead), which keeps it short of a 5.

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.