Home / Servers / OpenAI API / list_chat_completions

List Chat Completions

An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.

List Chat Completions List stored Chat Completions. Only Chat Completions that have been stored with the store parameter set to true will be returned. [GET /chat/completions]

Name on the gateway: openai_api__list_chat_completions · read-only.

Parameters

NameTypeDescription
modelstringThe model used to generate the Chat Completions.
metadataobjectA list of metadata keys to filter the Chat Completions by. Example…
afterstringIdentifier for the last chat completion from the previous pagination request.
limitintegerNumber of Chat Completions to retrieve.
orderasc | descSort order for Chat Completions by timestamp. Use asc for ascending order or…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "openai_api__list_chat_completions",
  "arguments": {}
}

Or connect the OpenAI API server directly, which lists 371 tools including this one:

Run in your terminal
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the list chat completions tool with model set to ….

More from OpenAI API