Skip to main content
Glama

Run model (subscribe)

falai_run_model
Destructive

Convenience 'subscribe': submit a request, poll its status until COMPLETED, then return the result. Consumes fal credits. If it does not complete within the wait budget, returns a { status, request_id, status_url, note } object (NOT an error) so you can keep polling with falai_get_request_status / falai_get_request_result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe model's input object — arbitrary params for that model, e.g. { "prompt": "a cat" }. Use falai_get_model_schema to learn the fields.
model_idYesThe fal.ai model id, used raw as a path segment, e.g. 'fal-ai/flux/schnell'.
max_wait_secondsNoMax seconds to wait for completion (default 60, capped at 300).
poll_interval_secondsNoSeconds between status polls (default 3, min 1).

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.4/5.0
Behavior5/5

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

Goes well beyond the single destructiveHint annotation: it discloses credit consumption, the polling loop, and — most valuably — that a wait-budget timeout returns a { status, request_id, status_url, note } object rather than an error, which prevents the agent from mis-handling a normal outcome as a failure.

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

Conciseness5/5

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

Two tight sentences, front-loaded with the core behavior and followed by the credit cost and the timeout contract. No filler.

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, and the description covers the non-obvious timeout return shape and names where the eventual result comes from. The success payload itself ('the result') is left generic, but with 100% schema coverage on inputs this is close to complete.

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 description coverage is 100%, including the 300s cap on max_wait_seconds and the default poll interval, so the schema carries parameter meaning. The description adds only the informal phrase 'wait budget', which is baseline-equivalent.

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?

Names a specific behavior chain (submit → poll until COMPLETED → return result) rather than just 'run model', and the word 'Convenience' tells the agent this is the synchronous wrapper. It is clearly distinguishable from sibling falai_submit_request (submit only) and the polling siblings.

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?

Explicitly routes the agent on the non-completion path: keep polling with falai_get_request_status / falai_get_request_result. However it never states the inverse condition (when to prefer falai_submit_request for long jobs), so the when-not guidance is partial.

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.