Skip to main content
Glama

post_api_v1_chat_completions

Read-only

Alias of POST /v1/chat/completions. Live Workers AI, OpenAI-compatible, $0.002 USDC via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "post_api_v1_chat_completions"
  }
}

Input Schema

NameRequiredDescriptionDefault
x_paymentNoSigned x402 payment payload

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=true and openWorldHint=true, which do not convey that the call costs money. The description usefully discloses the paid x402 mechanism and the exact price ($0.002 USDC), which is real behavioral context beyond the annotations. It stops short of saying what happens when payment is absent or invalid, or what a successful response looks like, so it is helpful but incomplete.

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 short fragments, front-loaded with the identifying route and followed by the two facts that matter (provider compatibility and price). Nothing is padded, though the opening reference to a raw path is less immediately readable than a plain-language verb.

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

Completeness3/5

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

With a single optional parameter and no output schema, the description shoulders the burden of telling the agent how to form the request, and "OpenAI-compatible" is the only cue that the body follows the OpenAI chat completions shape. That cues the right request format but leaves the actual message/model payload undocumented, which is a meaningful gap for an inference endpoint.

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?

There is one parameter with 100% schema coverage, so the schema already explains that x_payment is a signed x402 payment payload. The description's mention of x402 ties the payment story together but adds no syntax, format, or encoding detail beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies the tool by reference to a route ("Alias of POST /v1/chat/completions") and adds that it is "Live Workers AI, OpenAI-compatible," so the agent can infer it's a chat-completion/inference endpoint. But it never states the operation in plain language ("send a chat completion request") and gives no hint about how this differs from the sibling llm_chat_completions, which appears to be the same underlying capability.

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 when-to-use or when-not-to-use guidance, and no alternative is named. The agent cannot tell from this text why it would call this alias rather than llm_chat_completions or api_generate; only the parenthetical pricing note hints at a reason to prefer it.

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.