Skip to main content
Glama

Sats4AI - Bitcoin-Powered AI Tools

generate_text

Generate text using frontier AI language models. Pure per-character pricing (no minimum): Kimi K3 (best, ~10 chars/sat, 1M context, default), GPT-OSS-120B (standard, ~1000 chars/sat, 119 languages, best value). Rates are BTC-pegged and re-quoted hourly, so treat them as approximate — the 402 challenge is the authoritative price. Supports document Q&A via fileContext. For images, use the analyze_image tool. 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
promptYesThe text prompt or question
modelIdNoOptional. Omit for default (best) model.
fileNameNoName of the attached file
maxTokensNoMax tokens in response
paymentIdYesValid payment ID (must be paid)
fileContextNoExtracted file text to include as context
imageBase64NoBase64 data URI for vision analysis (best model only)
systemPromptNoOptional system prompt

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses per-character pricing, BTC-pegged rates re-quoted hourly, the 402 challenge as authoritative price, auto-upgrading models, and a no-API-key Lightning payment flow. It omits return-shape, latency, and failure behavior, so it is rich but not complete.

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?

Front-loads the core action and keeps the dense pricing/model/payment detail in a single tight paragraph. Given the tool's complexity the length is justified, though the parenthetical pricing and rate caveats add some density an agent could skim past.

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 an 8-parameter, no-annotation, no-output-schema tool, the description covers purpose, payment gating, model selection, and file context well. The notable gap is that with no output schema present, nothing describes what a successful response actually returns.

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 to modelId by naming the models, their tradeoffs (context length, languages, best vs best value), and defaulting behavior, and it links fileContext to document Q&A. Other params are left entirely to the schema.

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 ('Generate text') and immediately narrows scope with model choices and capabilities (Q&A via fileContext). It explicitly separates itself from the image path by pointing at analyze_image, letting an agent distinguish it from siblings without opening the 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?

Gives clear context (text completion, document Q&A), an explicit exclusion ('For images, use the analyze_image tool'), and a prerequisite workflow ('Requires create_payment with toolName="generate_text"'). It does not, however, distinguish this from other text-oriented siblings such as ai_call or multilingual_ask, which an agent must resolve on its own.

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.