Skip to main content
Glama

Private AI Media Generation

Private LLM text completion (paid)

chat_text

OpenAI-compatible chat completions — frontier and open-weight models (list under textModels in GET /v1/agent/models). PAID. If this MCP request carries your API key (x-api-key / Bearer lp_…) the completion executes right here and returns {choices, usage}; without a key the upstream answers 402 and this tool returns the x402 payment requirements. Price = estimated input tokens × input rate + max_tokens × output rate — set max_tokens tight to bill tight. Metering keeps token counts only.

Input Schema

NameRequiredDescriptionDefault
modelNoText model id (see textModels in list_models)
payerNoYour 0x… wallet — volume-tier discount (x402 rail)
promptYesThe text request — your user message
maxTokensNoOutput cap, billed at this amount

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / maxTokens / description
      Previous value: -"Output cap, billed at this amount (<= 8192, default 1024)"New value: +"Output cap, billed at this amount"
    • changedInput schema / properties / model / description
      Previous value: -"Text model id (default: deepseek/deepseek-v4.1-flash)"New value: +"Text model id (see textModels in list_models)"
    • changedInput schema / properties / payer / description
      Previous value: -"Your 0x… wallet — applies your volume-tier discount; must equal the wallet signing the payment"New value: +"Your 0x… wallet — volume-tier discount (x402 rail)"
  2. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"Text model id (default: deepseek/deepseek-v4-flash)"New value: +"Text model id (default: deepseek/deepseek-v4.1-flash)"
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only supply generic hints (readOnlyHint=false, idempotentHint=false), so the description carries the real burden and does it well: it discloses that the call is PAID, the exact pricing formula, that metering retains token counts only, the auth header forms accepted, and the failure payload when no key is present. These are behaviors an agent cannot infer from the annotation block or the schema.

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?

Information-dense and front-loaded — capability, then payment precondition, then pricing — with no filler sentences. The heavy em-dash parentheticals make it slightly cramped to parse, but every clause carries load-bearing content.

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?

With no output schema, the description supplies the return shape ({choices, usage}) and the alternate payment-requirements response, plus the auth and billing model. Given four fully documented parameters and no nested objects, nothing an agent needs to call this correctly is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds real meaning by tying maxTokens directly to billing ('Price = ... max_tokens × output rate — set max_tokens tight to bill tight'), which the schema does not state. The model parameter is only cross-referenced to textModels rather than explained further.

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 operation and resource — 'OpenAI-compatible chat completions' over frontier and open-weight models — and tells the agent where the model list lives. This separates it cleanly from generate_image and the prompt/reference tools in the sibling set.

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?

The description explains the two execution paths (key present → runs; key absent → 402 + x402 requirements) and advises setting max_tokens tight, which is genuine usage context. However, it never routes the agent to siblings such as quote_price for a cost preview, recommend_model for model choice, or list_models for enumeration, and gives no when-not-to-use condition.

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.

Resources