Skip to main content
Glama

vibedgames

Generate media

generate

Runs a model to generate an image, video, audio clip, 3D model or text, billed against your credits. Pass the endpoint id and the model's input (see generate_schema). Waits up to wait_seconds for the result; a job still running by then returns its request_id and status, to follow with generate_status. Needs a positive credit balance (403 insufficient_credits) and a priced model (400 unknown_endpoint).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "endpoint_id": "<endpoint_id>",
      "input": "<input>"
    },
    "name": "generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe model's input, per generate schema
endpoint_idYesA model's endpoint id, as generate models lists it, e.g. `fal-ai/flux/dev`
wait_secondsNoHow long to wait for the result before returning the request id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses billing against credits, the async timeout contract with wait_seconds and request_id fallback, and two concrete failure modes with status codes (403 insufficient_credits, 400 unknown_endpoint). That is material operational context an agent cannot get from the structured fields.

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 tight sentences, front-loaded with what the tool does and the billing implication, then the required inputs, then the async/timeout contract and error cases. No sentence is redundant.

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?

For a nested-input, async, credit-consuming generation tool with no output schema, the description covers prerequisites, timeout behavior, and the follow-up path well. The remaining gap is that the successful result payload shape is never described, only the pending-job case, leaving the agent to infer what a completed response contains.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: endpoint_id points at a model and its input must match that model's schema via generate_schema, and wait_seconds is explained in terms of what actually happens on expiry. The nested free-form 'input' object, the riskiest parameter here, is at least routed to generate_schema for discovery.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and a broad resource set ('generate an image, video, audio clip, 3D model or text') and frames itself as the endpoint-id-driven generic path. It does not, however, distinguish itself from the concrete type-specific siblings such as generate_image, generate_video, or generate_3d, so an agent must infer that this is the general/by-endpoint tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: 'Pass the endpoint id and the model's input (see generate_schema)' plus the precondition of a positive credit balance and a priced model. The follow-on path is explicit ('a job still running by then returns its request_id and status, to follow with generate_status'), which is good routing to a sibling. But there is no guidance on when to pick this over the many type-specific generate_* siblings.

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.