Skip to main content
Glama

Model search

search_models
Read-onlyIdempotent

Discover, filter, and retrieve fal.ai model endpoints by query, category, status, or ID, and expand schemas or enterprise status.

Instructions

Unified endpoint for discovering model endpoints. Supports three usage modes:

1. List Mode (no parameters): Paginated list of all available model endpoints with minimal metadata.

2. Find Mode (endpoint_id parameter): Retrieve specific model endpoint(s) by ID. Supports single or multiple IDs.

3. Search Mode (search parameters): Filter models by free-text query, category, or status.

Expansion: Use expand to include additional data in each model object:

  • openapi-3.0 — full OpenAPI 3.0 schema in the openapi field

  • enterprise_status — enterprise readiness status (ready or pending) in the enterprise_status field

Examples of endpoint_id values:

  • fal-ai/flux/dev

  • fal-ai/wan/v2.2-a14b/text-to-video

  • fal-ai/minimax/video-01/image-to-video

  • fal-ai/hunyuan3d-v21

See fal.ai Model APIs for more details.

Authentication: Optional. Providing an API key grants higher rate limits.

Common Use Cases:

  • Browse available models for integration

  • Retrieve metadata for specific endpoints

  • Search for models by category or keywords

  • Get OpenAPI schemas for code generation

  • Build model selection interfaces

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoFree-text search query to filter models by name, description, or category
limitNoMaximum number of items to return. Actual maximum depends on query type and expansion parameters.
cursorNoPagination cursor from previous response. Encodes the page number.
expandNoFields to expand in the response. Supported values: 'openapi-3.0' (includes full OpenAPI 3.0 schema in 'openapi' field), 'enterprise_status' (includes enterprise readiness status)
statusNoFilter models by status - omit to include all statuses
accountNoExact private account key profile label, not an authenticated provider owner ID.
categoryNoFilter by category (e.g., 'text-to-image', 'image-to-video', 'training')
endpoint_idNoEndpoint ID(s) to retrieve (e.g., 'fal-ai/flux/dev'). Can be a single value or multiple values (1-50 models). When combined with search params, narrows results to these IDs. Use array syntax: ?endpoint_id=model1&endpoint_id=model2

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is clear. The description adds useful behavioral context: optional API key grants higher rate limits, and the expand parameter controls extra fields like full OpenAPI schema and enterprise status. It does not detail pagination behavior or complete response shape, which keeps it from a 5.

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 description is well-structured with bold section headers, front-loads the purpose, and progresses logically through modes, expansion, examples, authentication, and use cases. It is appropriately sized for a multi-mode tool, but the 'Common Use Cases' list largely echoes the already-stated modes, adding minor redundancy.

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?

Given the absence of an output schema, the description covers the main behaviors an agent needs: mode selection, expansion fields, authentication impact, and endpoint ID examples. It does not specify the exact response structure for List or Search modes beyond 'minimal metadata', leaving some return-value ambiguity, but it is otherwise complete for a search/discovery 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 description coverage is 100%, so individual parameter meanings are already well documented. The description adds value by grouping parameters into the three usage modes, clarifying that endpoint_id can be combined with search params to narrow results, and explaining expand behavior with concrete field names. This adds combinatorial semantics beyond the schema, though it repeats some schema-level detail.

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 states a specific resource ('model endpoints') and specifies three distinct usage modes (List, Find, Search) with clear parameter conditions. An agent can immediately tell this is a discovery/search endpoint for models, distinct from utility tools like get_pricing or get_usage.

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?

It explicitly maps parameter combinations to three usage modes and provides common use cases, which gives clear operational context. However, it does not name a sibling alternative such as get_model_info when the agent needs a single model's details, and no explicit 'when not to use' guidance is given.

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