Skip to main content
Glama

generate

Run a generative AI model and get the output as a media URL or assistant text. Pay per call with USDC from your wallet.

Instructions

Run a model and return the result — a media URL for image/video/audio/music models, assistant text for text (LLM) models. Text models take OpenAI-style input: { messages: [{ role, content }, …], max_tokens? }. PAID: settles the price from your wallet over the configured rail (base/tempo/solana). Call get_schema first for the input shape, get_price for the cost. File inputs (image/video/audio, e.g. image-to-video or video-to-video video_uri) take a public URL — upload a local file with POST /v1/media (≤40MB) to get one. Array file fields (e.g. images, reference_images for multi-reference models) take an ARRAY of such URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesModel input, e.g. { prompt: "a red fox" } or { text: "hello" }. See get_schema.
modelYesModel id from list_models.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoMedia URL of the result, when the model returns media.
railYes
modelYes
outputNoRaw model output.
costUsdYes
costMicroUsdYes
Behavior4/5

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

Beyond annotations (readOnlyHint=false), the description discloses the paid nature ('settles the price from your wallet'), output types (media URL vs assistant text), and file upload constraints. It adds significant behavioral context without contradicting the annotations.

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?

The description is somewhat long but every sentence carries useful information. It is front-loaded with the main purpose, then precision details. The structure flows logically from general to specific, with no redundancy.

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?

Given the tool's complexity, the description covers all critical aspects: output formats, input variations, payment side-effects, prerequisites, and file handling. An output schema exists, so return values are not required, and the description does not omit essential operational details.

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

Parameters5/5

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

Despite high schema coverage, the description substantially enriches parameter understanding: it explains OpenAI-style input for text models, the requirement of public URLs for file fields, and the array format for multi-reference images. This goes well beyond the bare schema descriptions.

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?

The description opens with 'Run a model and return the result', clearly stating the core function with a specific verb and resource. It distinguishes between media and text model outputs, and contrasts with sibling tools like get_schema and get_price by identifying generate as the execution step.

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 description provides clear usage context, instructing to call get_schema first and get_price for cost, and explaining how to handle file inputs (public URL, upload limit). It doesn't explicitly state when not to use the tool, but the referenced sibling tools make the distinction obvious.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gliana-Labs/gliana-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server