Skip to main content
Glama

llm_chat_completions

Read-only

$0.002 via x402: Workers AI chat (OpenAI-compatible). Default @cf/meta/llama-3.1-8b-instruct-fp8.

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": {
      "messages": "<messages>"
    },
    "name": "llm_chat_completions"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNomodel name
messagesYeschat messages, each {role, content}
x_paymentNoOptional signed x402 payment payload

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / messages / description
      Added value: +"chat messages, each {role, content}"
    • addedInput schema / properties / model / description
      Added value: +"model name"
  2. Added
  3. Removed
  4. Added
  5. Removed
  6. Added

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a per-call price of $0.002 and the default model. However, the payment mechanics are opaque — it never says whether x_payment is mandatory, whether a 402 challenge must be handled, or that model output is generated non-deterministically.

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 compact clauses with the price and compatibility front-loaded and no filler. It is terse to the point of being cryptic for readers unfamiliar with x402, but nothing is wasted.

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?

For a paid LLM endpoint with no output schema, the definition should explain the payment handshake and what a response contains. It only quotes a price, leaving an agent unable to determine the cost/payment flow required to invoke the tool successfully.

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 100%, so the baseline is 3. The description does add one piece of meaning beyond the schema by naming the default model when 'model' is omitted, but it leaves 'x_payment' essentially unexplained despite the x402 mention.

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 identifies a concrete resource and operation: OpenAI-compatible Workers AI chat completions, plus a default model. That is clear, but it offers no differentiation from near-identical siblings such as post_api_v1_chat_completions or llm_messages, so an agent cannot tell which chat endpoint to select from this text alone.

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 statement of when to use this tool, when not to, or which sibling to prefer. The only contextual hint is 'via x402', which implies a paid path, but no condition for choosing it over a free or alternate chat endpoint is given.

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.