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
| Name | Type | Description |
|---|---|---|
model | string | The model used to generate the Chat Completions. |
metadata | object | A list of metadata keys to filter the Chat Completions by. Example… |
after | string | Identifier for the last chat completion from the previous pagination request. |
limit | integer | Number of Chat Completions to retrieve. |
order | asc | desc | Sort 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:
{
"name": "openai_api__list_chat_completions",
"arguments": {}
}Or connect the OpenAI API server directly, which lists 371 tools including this one:
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 ….