Skip to main content
Glama

chat_completion

Run a chat completion billed to a tai_ key's credits.

Input Schema

NameRequiredDescriptionDefault
modelYes
api_keyNo
messagesYes
max_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the call is billed to a tai_ key's credits, but it does not explain authentication requirements, rate limits, error behavior, or whether the call is synchronous or streaming.

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

Conciseness3/5

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

The single sentence is front-loaded and free of filler, but it is under-specified for a four-parameter billable tool. Conciseness is good, yet the structure does not provide enough operational context.

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

Completeness2/5

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

Given no annotations, no output schema, and 0% schema description coverage, the definition is materially incomplete. Billing context is valuable, but the description omits return behavior, parameter meanings, and usage prerequisites needed to call this confidently.

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 description coverage is 0%, so the description must compensate for four undocumented parameters. It only vaguely hints that the api_key relates to a tai_ key and says nothing about model, messages, or max_tokens.

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?

The description names a specific verb ('Run') and resource ('chat completion'), and it clarifies the billing scope via a tai_ key's credits. It is clear enough to distinguish this from billing/balance siblings, but it does not explicitly differentiate itself from alternatives such as list_models or explain when chat completion is the right choice.

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 guidance on when to use this tool versus alternatives. It does not mention prerequisites such as obtaining or selecting a model, checking balance first, or when to use list_models instead.

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