Skip to main content
Glama

Chat completion

chat_completion

Groq chat completion. Authorize the published maximum with x402 upto. After a valid result the server settles the larger of the model floor ($0.02 on gpt-oss-20b, $0.05 on gpt-oss-120b) and actual tokens plus markup, never more than the authorization. Failed or empty results are not charged.

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_completion"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
messagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already indicate open-world, non-read-only, non-idempotent behavior. The description adds meaningful settlement details: authorization caps, model floors, token-based charges, and no charge for failed or empty results.

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?

The description is compact and front-loads the main purpose before billing details. The x402 phrasing is dense, but no sentence is clearly unnecessary.

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?

There is no output schema, yet the description does not explain what a chat completion returns. With 0% schema description coverage, it is also missing essential input semantics for messages and model.

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 should compensate for undocumented parameters. It only hints at model names via pricing floors and says nothing about the required messages parameter, roles, content limits, or model selection.

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 "Groq chat completion," which identifies the core operation and resource clearly. It does not explicitly differentiate this tool from other intelligence or search siblings, but the purpose is still understandable.

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?

The description explains billing mechanics but gives no guidance on when to use this tool versus alternatives. It also does not mention prerequisites for x402 authorization or what kinds of chat tasks are appropriate.

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