Skip to main content
Glama

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. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds genuine context by disclosing the response shape (components.schemas with input/output fields) and the underlying GET endpoint, which implies a plain fetch with no side effects. It omits any note on failure behavior for an unknown model_id or on caching/rate limits, so not 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?

Three tight sentences: capability first, usage second, raw endpoint last. The endpoint line is slightly redundant for invocation purposes but useful for verification/debugging, and nothing is padded.

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?

No output schema exists, so the description must describe the return value — and it does, naming components.schemas input/output fields. Combined with the readOnly annotation, an agent has enough to call this correctly; only error handling for an invalid model_id is left unstated.

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 single model_id parameter is well documented in the schema (including the 'fal-ai/flux/schnell' example). The description only echoes model_id via the endpoint template, adding no format or constraint detail beyond the schema, so the baseline of 3 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 precise verb and resource ('Get the OpenAPI 3 schema for a model') and immediately narrows the payload to 'its input/output fields (components.schemas)'. This distinguishes it from siblings like falai_run_model or falai_list_models without the agent needing to open any schema.

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 triggering condition tied to a workflow step (pre-submission discovery). It does not explicitly name the alternative tools or state when not to use it, so it stops short of full when/when-not guidance.

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.