Skip to main content
Glama

falai

Get model schema

falai_get_model_schema
Read-only

Get the OpenAPI 3 schema for a model — its input/output fields (components.schemas). Use this to learn what inputs a model accepts before submitting. fal.ai API: GET /openapi/queue/openapi.json?endpoint_id={model_id}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesThe fal.ai model id, used raw as a path segment, e.g. 'fal-ai/flux/schnell'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The readOnlyHint annotation already establishes safety, and the description adds real value beyond it by disclosing the exact backing source (GET /openapi/queue/openapi.json?endpoint_id={model_id}) and that the raw OpenAPI document is returned. It does not cover rate limits or error behavior, so it stops short of 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?

Two sentences, front-loaded with purpose before usage guidance. The trailing endpoint URL is somewhat technical detail but is short and reinforces the data source, so it earns its place without bloating the definition.

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?

With no output schema, the description does the necessary work of stating what is returned ('input/output fields (components.schemas)'), which is exactly what an agent needs before calling. Nothing critical is missing for a single-parameter read tool, though return-format caveats (size, nesting) are unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the sole parameter's description already documents that model_id is used raw as a path segment with an example. The description adds nothing further about the parameter, so the baseline 3 for schema-complete tools applies.

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?

States a specific verb and resource ('Get the OpenAPI 3 schema for a model') and specifies the payload content ('components.schemas'), which cleanly separates it from action-oriented siblings like falai_run_model and falai_submit_request. The reader can tell immediately that this is an introspection tool, not an execution tool.

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 this to learn what inputs a model accepts before submitting' gives a clear trigger condition tied to a sibling workflow (submit/run). It does not name a specific alternative or state exclusions, but the when-to-use context is explicit and actionable.

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.