Skip to main content
Glama

Chat Completions

post_chat_completions

Creates a model response for the given chat conversation Billing per call: Credits: metered.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoJSON request body. Example: {"model":"GPT-4o","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. Dates show when Glama detected each change.

  1. First observed

TDQS

B3.1/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 burden. It discloses that billing is metered, which is useful, but it does not mention side effects, safety, throttling, or error behavior. It also fails to clarify that it is a non-mutating generation call beyond the verb 'creates'. Minimal disclosure beyond cost.

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 short and gets to the point. However, the billing note is awkwardly appended and could be better structured. It is still concise and front-loaded with the purpose, so it earns a 4.

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?

With no output schema, the description should explain what the response looks like, but it does not. It also lacks guidance on expected behavior for streaming or formatting. Given the tool's simplicity (one param) and lack of annotations, the description is incomplete for an agent to fully understand the tool's usage and output.

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% for the single 'body' parameter, which includes a detailed example. The tool description adds 'chat conversation' context but essentially repeats what the schema already conveys. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

The description clearly states 'Creates a model response for the given chat conversation', which is a specific verb+resource. It distinguishes itself from nothing since there are no siblings, but it is clear enough. It could be more explicit about being the chat completions endpoint, but the title and context make it unambiguous.

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?

The description implies it is used for chat conversations, but provides no explicit guidance on when to use it versus alternatives. Since there are no sibling tools, this is acceptable but still lacks any exclusions or prerequisites. The billing note is not a usage guideline.

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