Skip to main content
Glama

Create Chat Completion

post_chat_completions

Creates a model response for the given chat conversation. Group: OpenAI Endpoints. Billing per call: Credits: metered (~16.71 avg).

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON request body. Example: {"model":"gpt-6.1-sol","stream":false,"messages":[{"role":"user","content":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / body / description
      Previous value: -"JSON request body. Example: {\"model\":\"gpt-5.6-terra\",\"stream\":false,\"messages\":[{\"role\":\"user\",\"content\":\"How many days in 3 weeks.\"}]}"New value: +"JSON request body. Example: {\"model\":\"gpt-6.1-sol\",\"stream\":false,\"messages\":[{\"role\":\"user\",\"content\":\"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?\"}]}"
  2. Changed1 schema field changed
    • changedInput schema / properties / body / description
      Previous value: -"JSON request body. Example: {\"model\":\"gpt-5-mini\",\"stream\":false,\"messages\":[{\"role\":\"user\",\"content\":\"How many days in 3 weeks.\"}]}"New value: +"JSON request body. Example: {\"model\":\"gpt-5.6-terra\",\"stream\":false,\"messages\":[{\"role\":\"user\",\"content\":\"How many days in 3 weeks.\"}]}"
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full disclosure burden. It does add genuinely useful cost context ('Billing per call: Credits: metered (~16.71 avg)'), but it says nothing about authentication, rate limits, model availability, streaming semantics, or error behavior for what is a paid inference call.

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 sentences with the purpose front-loaded and no redundant phrasing. The 'Group:' label is filler for an agent's decision-making, but it costs little.

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 one parameter and no output schema, the definition should at minimum sketch the response shape (choices/message content) or note streaming behavior, since no output schema exists to carry that. As written it is callable but leaves the agent guessing about what comes back and how this differs from sibling generation endpoints.

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 only one parameter and schema description coverage is 100%, so the schema already documents the body and even supplies a full example. The description adds no meaning beyond that (no guidance on which body fields matter, model naming, or streaming), so the high-coverage baseline of 3 applies.

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 verb and resource: 'Creates a model response for the given chat conversation,' which maps cleanly to the chat-completions concept. It does not, however, distinguish this from close siblings such as post_responses, post_messages, or post_generateContent, and the 'Group: OpenAI Endpoints' line is metadata rather than differentiation.

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 guidance at all. With siblings like post_responses and post_messages in the same family, an agent gets no signal about which endpoint to pick for a given conversation or provider, and no prerequisites or exclusions are stated.

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