Skip to main content
Glama

Submit request

falai_submit_request
Destructive

Submit an inference request to the queue and return immediately (async — does NOT wait for completion). Returns { request_id, response_url, status_url, cancel_url, queue_position }. Consumes fal credits when the model runs. fal.ai queue: POST {queue}/{model_id} with body = the model input.

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'.

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

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

Annotations only declare destructiveHint=true; the description earns its keep by explaining why (consumes fal credits when the model runs) and by disclosing the full return contract (request_id, response_url, status_url, cancel_url, queue_position) plus the underlying POST {queue}/{model_id} semantics. It stops short of explaining polling/cancel follow-up flow.

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?

Three dense sentences, front-loaded with the async contract, then the return shape, then the side effect and wire format. No filler and no restatement of the tool title.

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?

For a two-parameter tool with no output schema and only a destructiveHint annotation, the description supplies everything the agent needs: async semantics, cost implication, documented return fields, and a pointer for discovering model-specific input fields.

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?

With 100% schema coverage the baseline is 3, but the description adds real mapping information: the body equals the model input and model_id is interpolated raw into a path segment. It also actively points to falai_get_model_schema as the way to discover the arbitrary per-model input fields, which the schema itself cannot enumerate.

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+resource (submit an inference request to the queue) and immediately differentiates its mode of operation: 'return immediately (async — does NOT wait for completion)'. That distinction separates it from the synchronous-sounding sibling falai_run_model without needing to open either 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?

The async/does-not-wait framing is a clear when-to-use signal, and it routes the agent to falai_get_model_schema for building the input object. It never explicitly names falai_run_model as the synchronous alternative, so the choose-between guidance is implied rather than stated.

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.