Home / Servers / OpenAI API / accept_realtime_call

Accept call

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

Accept call Accept an incoming SIP call and configure the realtime session that will handle it. [POST /realtime/calls/{call_id}/accept]

Name on the gateway: openai_api__accept_realtime_call · may change things.

Parameters

NameTypeDescription
call_id requiredstringThe identifier for the call provided in the…
type requiredrealtimeThe type of session to create. Always realtime for the Realtime API.
output_modalitiesarrayThe set of modalities the model can respond with. It defaults to ["audio"]…
modelstringThe Realtime model used for this session.
instructionsstringThe default system instructions (i.e. system message) prepended to model…
audioobjectConfiguration for input and output audio.
includearrayAdditional fields to include in server outputs. item.input_audio_transcription.…
tracingobjectRealtime API can write session traces to the Traces Dashboard. Set to null to…
toolsarrayTools available to the model.
tool_choiceobjectHow the model chooses tools. Provide one of the string modes or force a…
parallel_tool_callsbooleanWhether the model may call multiple tools in parallel. Only supported by…
reasoningobjectConfiguration for reasoning-capable Realtime models such as gpt-realtime-2.
max_output_tokensintegerMaximum number of output tokens for a single assistant response, inclusive of…
truncationobjectWhen the number of tokens in a conversation exceeds the model's input token…
promptobjectReference to a prompt template and its variables. Learn more.

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__accept_realtime_call",
  "arguments": {
    "call_id": "…",
    "type": "…"
  }
}

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 accept call tool with call_id set to ….

More from OpenAI API