Skip to main content
Glama

chat_completions

Read-only

OpenAI-compatible chat completions — Drop-in OpenAI-style chat endpoint: POST the standard chat.completions JSON body (messages with system, user and assistant roles, max_tokens, temperature, top_p) and get a chat.completion object back. Llama 3.3 70B. Pay per call in USDC on Base with x402 instead of an API key; point an OpenAI-compatible client at this base URL. Streaming is not supported. Price: $0.01 USDC (Base, via x402).

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": "chat_completions"
  }
}

Input Schema

NameRequiredDescriptionDefault
messagesYesarray of {role, content} chat messages (OpenAI format)
max_tokensNooptional max output tokens (default 800, max 2048)
temperatureNooptional sampling temperature 0-2

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds genuinely useful context beyond them: pay-per-call pricing ($0.01 USDC on Base via x402 instead of an API key), the specific model, and the fact that streaming is unsupported. It omits latency, rate limits, and error/failure modes, so it stops short of a 5.

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

Conciseness5/5

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

Front-loaded with a one-line identity ('OpenAI-compatible chat completions') then a dense clause list covering model, payment, and the streaming limitation. Every sentence carries information; nothing is padding.

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

Completeness4/5

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

For a three-parameter passthrough endpoint with no output schema, the definition covers request shape, model, return type, payment, and the no-streaming constraint. Missing only edge-case behavior (token limits beyond max_tokens, error responses), which keeps it just below complete.

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 three parameters are already documented, and the description only enumerates the same fields without adding format or constraint detail. It also names top_p, which is absent from the input schema, slightly muddying the parameter picture rather than clarifying it.

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?

States a specific resource (chat completions endpoint), the standard request shape (chat.completions JSON body with messages/max_tokens/temperature/top_p), the model (Llama 3.3 70B), and the return type (chat.completion object). It's clear what the tool is, but it never distinguishes itself from LLM-oriented siblings like ai_chat or ai_ask, leaving an agent to infer the split.

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

Usage Guidelines3/5

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

Gives practical usage context — point an OpenAI-compatible client at this base URL, POST the standard body, streaming is not supported — plus pricing and payment method. It does not state when to prefer this over the sibling AI chat/ask tools or what input constraints would make it unsuitable, so guidance is implied rather than explicit.

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