Skip to main content
Glama

generate_text

Generate text with frontier AI language models through Bitcoin Lightning micropayments. Supports document Q&A and vision analysis with no minimum or signup.

Instructions

Generate text using frontier AI language models. Pure per-character pricing (no minimum): Kimi K2.5 (id=6, best, 100 chars/sat, 262K context, vision support, default), GPT-OSS-120B (id=1, better, 333 chars/sat, strong reasoning), Qwen3-32B (id=26, standard, 1000 chars/sat, 119 languages, best value). Supports document Q&A via fileContext and vision analysis via imageBase64 (best model). Stable endpoints — models upgrade automatically. Pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='generate_text' and the exact prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paymentIdYesValid payment ID (must be paid)
promptYesThe text prompt or question
modelIdNoOptional. Omit for default (best) model.
systemPromptNoOptional system prompt
maxTokensNoMax tokens in response
fileContextNoExtracted file text to include as context
fileNameNoName of the attached file
imageBase64NoBase64 data URI for vision analysis (best model only)
Behavior3/5

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

Despite missing annotations, the description discloses important behavioral traits: per-character pricing, automatic model upgrades, stable endpoints, and the need for a paid paymentId. However, it omits details like rate limits, latency, or failure modes, which would benefit an AI agent.

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 fairly long but well-structured and front-loaded with purpose. Each sentence adds informational value, though some repetition (e.g., multiple model listings) could be streamlined without loss.

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?

Given 8 parameters and no output schema, the description covers input semantics, model options, pricing, and payment flow adequately. It lacks explanation of the response format, but for a text generation tool this is acceptable as the agent can infer the output from the prompt.

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 baseline is 3. The description adds significant value by explaining model IDs (e.g., id=6 for best), that imageBase64 works only with the best model, and that fileContext is for document Q&A. This enriches parameter understanding beyond 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 clearly states 'Generate text using frontier AI language models,' specifying the verb (generate) and resource (text). It distinguishes from sibling tools like generate_image or generate_video, and provides additional details about model capabilities and pricing.

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 explains that the tool generates text using frontier models and requires payment via create_payment with specific parameters. It does not explicitly contrast with similar tools like ai_call, but it clarifies prerequisites and the no-signup usage model.

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/cnghockey/sats4ai-mcp-server'

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