llm_chat_completions
$0.002 via x402: Workers AI chat (OpenAI-compatible). Default @cf/meta/llama-3.1-8b-instruct-fp8.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| messages | Yes | ||
| x_payment | No | Optional signed x402 payment payload |
$0.002 via x402: Workers AI chat (OpenAI-compatible). Default @cf/meta/llama-3.1-8b-instruct-fp8.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| messages | Yes | ||
| x_payment | No | Optional signed x402 payment payload |
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 burden. It mentions the cost ($0.002 via x402) and the default model, which is useful, but it does not disclose output format, rate limits, authentication requirements, or what happens on payment failure. Minimal behavioral context is provided.
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 description is a single concise sentence with no fluff. It front-loads the cost and default model effectively. While it is minimal, it is not verbose, earning a high score for conciseness.
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?
For a simple 3-parameter tool, the description is surprisingly incomplete. There is no mention of return values, error behavior, or how to structure the request beyond the schema. The OpenAI-compatible qualifier gives some context, but without output schema or annotations, more detail is needed to make the tool usable.
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 only 33%, and the description adds no parameter information. It does not explain what 'messages' should contain beyond the 'OpenAI-compatible' hint, nor does it clarify 'model' or 'x_payment'. The schema is left to do all the work, which is insufficient given the low coverage.
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 states 'Workers AI chat (OpenAI-compatible)', which clearly identifies the tool as a chat completion endpoint. The default model is noted, adding specificity. However, it does not distinguish from sibling tools like post_api_v1_chat_completions, so it stops short of a 5.
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?
No guidance is provided on when to use this tool versus alternatives such as llm_messages or post_api_v1_chat_completions. The description gives no context about ideal use cases or exclusions.
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.