Skip to main content
Glama

Create Chat Completion

post_chat_completions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoJSON request body. Example: {"model":"gpt-5.6-terra","stream":false,"messages":[{"role":"user","content":"How many days in 3 weeks."}]}

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-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.\"}]}"
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it only partially discharges it. It does disclose metered billing (~3 credits average per call), which is genuinely useful cost context, but says nothing about auth requirements, rate limits, streaming semantics, or what happens on invalid models. For a no-annotation mutation/generation tool this is a thin disclosure.

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 padding. The 'Group: Chat' fragment is metadata noise that doesn't earn its place, which keeps this out of the top band. The billing note is terse and useful.

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?

This is a chat-completion endpoint with a nested request object and no output schema, so the description should carry more weight. It never enumerates valid body fields (messages roles, temperature, max_tokens, tool calls) or characterizes the response, leaving an agent dependent on a single example string. For a tool this central and this structurally complex, the description is under-specified.

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% and there is a single 'body' parameter, so the baseline is 3. The schema's inline JSON example already conveys the request shape (model, stream, messages), and the description adds no field-level meaning beyond it. Adequate, but no compensation needed and none given.

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.' This is unambiguous and clearly distinct from siblings like get_models, post_embeddings, post_moderations and post_audio_speech. It stops short of explicitly naming those siblings or the conditions that select this tool over them, so it lands at 4 rather than 5.

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 offers no when-to-use or when-not-to-use guidance and never references the sibling tools. 'Group: Chat' is organizational metadata, not routing guidance, and the billing line is cost information rather than an invocation condition. An agent gets no help deciding between this and, say, post_embeddings or post_moderations.

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