chat_completion
Run a chat completion billed to a tai_ key's credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| api_key | No | ||
| messages | Yes | ||
| max_tokens | No |
Run a chat completion billed to a tai_ key's credits.
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| api_key | No | ||
| messages | Yes | ||
| max_tokens | No |
Changes observed during successful MCP inspections.
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.
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.
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.
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.
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.
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.
Add one secure layer between your agents and this server.