Skip to main content
Glama

Ask a text model

chat

Send a prompt to a Kunavo text model and get the complete, non-streamed answer, billed per token against your prepaid balance.

Instructions

Send a prompt to a text model on Kunavo (the models whose endpoint is chat in list_models) and return its answer. Spends the balance: the call is charged per token (the model's listed rates are in list_models). The answer is returned whole, not streamed, so a long one takes a while.

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": {
      "model": "<model>",
      "prompt": "<prompt>"
    },
    "name": "chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesA model id from list_models with endpoint chat.
promptYesThe user message.
systemNoOptional system prompt.
max_tokensNoOptional cap on the answer's tokens. On a reasoning model the reasoning counts against it, so a low cap can leave no room for the answer.
timeout_secondsNoHow long to wait for the answer (default 50). The tool call is over at most 5 seconds after that, the reading of the model list included. MCP clients usually end a tool call after 60 seconds; raise this only when yours waits longer. A call cut off here may still be answered, and charged, upstream.

Output Schema

NameRequiredDescriptionDefault
textYes
modelYes
priceYesThe model's listed rate, from the live catalog.
usageYes
finish_reasonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the call spends balance, that billing is per token at rates found in list_models, and that the answer is returned whole rather than streamed so long responses take time. That explains the readOnlyHint=false / idempotentHint=false profile the agent would otherwise have to guess at.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: capability first, cost second, latency behavior third. No restatement of the title and no filler.

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?

An output schema covers the return value and the schema fully documents all five parameters including the timeout caveat and reasoning-token trap. The description fills the remaining gaps an agent needs, namely billing exposure and non-streaming latency.

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

Parameters2/5

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

Schema coverage is 100%, so the baseline applies. The one added nuance, that the model must come from list_models with the chat endpoint, is already stated in the model parameter's own schema description, so the prose adds essentially nothing about parameters.

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 concrete verb and resource ("send a prompt to a text model") and scopes which models qualify (those whose endpoint is chat in list_models). The word "text" plus the endpoint constraint cleanly separates it from the image/video/music generation siblings without naming them.

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 for use and a hard prerequisite for model selection via list_models, plus a cost warning that shapes when the call is appropriate. It does not state outright when to pick a sibling instead, so it stops short of full when/when-not routing.

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