Skip to main content
Glama

chat_completion

Send one prompt to a chosen SmarToken model and receive generated text using your API key; charges may apply and no automatic retries occur.

Instructions

Send one text prompt to the chosen SmarToken model. This can incur a charge; no automatic retries.

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_completion"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes
promptYes
max_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare openWorldHint, non-idempotency and non-read-only status, so the bar is lower. The description still adds real value annotations cannot express: the request can incur a charge and there are no automatic retries. It omits permission requirements and what a failed call does, so it earns a solid but not exceptional score.

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?

Two tight sentences, front-loaded with the action, with no filler. The billing and retry caveats are worth the space, though the second sentence could be split for clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter tool with no output schema, the description should say what comes back (completion text, token usage) or whether a prior model listing is required. It covers cost and retry behavior but leaves the return value and model-selection prerequisite unaddressed.

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 description coverage is 0%, so the description carries the burden for all three parameters. It only clarifies that prompt is a single text string rather than a message array, and implies model is chosen from elsewhere; it says nothing about max_tokens or acceptable model values.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Send one text prompt to the chosen SmarToken model" gives a concrete verb (send) and resource (a single text prompt to a named model), making it clearly distinct from list_models. It stops short of naming the sibling or explicitly stating the relationship, so a 4 rather than a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance and no mention of list_models as the prerequisite step for discovering the "chosen model." The phrase "one text prompt" hints at single-shot, non-conversational use, but the agent must infer that.

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

Deploy Server

Other Tools