Skip to main content
Glama

Sats4AI - Bitcoin-Powered AI Tools

generate_text

Generate text using frontier AI language models. Per-character pricing with a per-request minimum: Kimi K3 (best, ~10 chars/sat, 1M context, default), GPT-OSS-120B (standard, ~1000 chars/sat, 119 languages, best value). Rates and minimums 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.

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": {
      "paymentId": "<paymentId>",
      "prompt": "<prompt>"
    },
    "name": "generate_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesThe text prompt or question
modelIdNoOptional. Omit to run the model this payment was created for.
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. Changed1 schema field changed
    • changedInput schema / properties / modelId / description
      Previous value: -"Optional. Omit for default (best) model."New value: +"Optional. Omit to run the model this payment was created for."
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full load and does well on cost/auth behavior: per-character pricing with a per-request minimum, BTC-pegged hourly re-quotes, the 402 challenge as authoritative price, and Lightning payment with no API key. However it never says whether the call is synchronous or returns a job to poll, nor what happens on retry/re-billing, which matters for an 8-parameter paid mutation.

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 verb and resource, then stacks model options, pricing caveats, and the payment prerequisite in a logical order with no filler sentences. It is on the dense side — the BTC-pegging/hourly re-quote detail is repeated in effect by the '402 challenge is authoritative' clause — but nearly every clause carries decision-relevant information.

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?

Covers model selection, cost model, payment prerequisite, file context, and the image alternative for a tool with no output schema and no annotations. The main gap is execution shape: nothing says whether it returns text directly or produces a job requiring check_job_status/await_result, which is significant given those siblings exist and the call is paid.

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

Parameters3/5

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

Schema coverage is 100%, so all eight parameters are already documented, making 3 the baseline. The description adds modest meaning: modelId defaults to Kimi K3 (or the model the payment was created for, per the schema) and fileContext enables document Q&A, but it adds no syntax or format guidance for prompt, systemPrompt, or maxTokens. It also creates mild noise by steering images to analyze_image while imageBase64 exists in 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 and resource ('Generate text using frontier AI language models') and immediately scopes it by naming the models available, the default (Kimi K3), and the document Q&A capability. It clearly separates itself from analyze_image, so an agent can distinguish it from image-oriented siblings without reading schemas.

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 explicit routing ('For images, use the analyze_image tool') and a hard prerequisite workflow ('Requires create_payment with toolName=generate_text and the exact prompt'), which is exactly the kind of precondition an agent needs. It stops short of stating exclusions for other text operations (e.g. translation) but that is not required to call it correctly.

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.