Skip to main content
Glama
MCP OpenAI Server

MCP OpenAI Server

by Akira-AA83

openai_chat

Sends messages to a specified OpenAI chat model and returns the completion, enabling users to run fast, reasoning, or deep-audit requests with GPT or o-series models.

Instructions

Use this tool when a user specifically requests to use one of OpenAI's models (gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4, gpt-5.4-mini, gpt-5, gpt-5-mini, o3, o4-mini, gpt-4.1, gpt-4.1-mini, gpt-4o, gpt-4o-mini). This tool sends messages to OpenAI's chat completion API using the specified model.

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": "openai_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNoCost/quality tier: "fast" = gpt-5-mini, "reason" = gpt-5, "deep" = gpt-6-astra. Default "reason". Use "deep" (gpt-6-astra, expensive) only for critical audits; "fast" for trivial tasks.reason
modelNoOptional exact model; overrides tier (gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4, gpt-5.4-mini, gpt-5, gpt-5-mini, o3, o4-mini, gpt-4.1, gpt-4.1-mini, gpt-4o, gpt-4o-mini)
messagesYesArray of messages to send to the API

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It discloses the underlying mechanism (OpenAI chat completion API, stateless message array), which helps an agent reason about behavior. It omits cost/latency implications of expensive models, rate limits, failure modes, and whether conversation state persists across calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The second sentence is a tight, useful summary. The first sentence spends most of its length enumerating fifteen model names that are already listed in the model enum, which is redundant bulk rather than front-loaded value.

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 and no annotations, so the description should describe what comes back (text content, token/usage info, errors) and note cost exposure for expensive models. It says nothing about return values or the fact that tier and model interact, leaving real gaps for a tool with no other structured disclosure.

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%, including enum docs for tier and model, so the schema already explains every parameter. The description's model list merely repeats the enum values and adds no semantics such as precedence rules or format details beyond what the schema states. Baseline 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?

The description names a concrete verb and resource: it 'sends messages to OpenAI's chat completion API using the specified model.' That is unambiguous about what the tool does, and the trigger sentence ties it to a specific model family. It does not explicitly contrast with the sibling astra_investigate, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear selection condition: use it 'when a user specifically requests to use one of OpenAI's models.' That implicitly excludes cases where no OpenAI model is named, which is real routing guidance. It names no explicit alternative tool for the non-OpenAI case and gives no when-not statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools