Skip to main content
Glama

voice_session

Open a realtime voice session by submitting a WebRTC SDP offer; use the returned answer to connect the client, with audio streaming directly between client and OpenAI.

Instructions

Realtime sesli oturum açar. İstemci WebRTC SDP offer üretir, dönen answer ile bağlanır; ses istemci↔OpenAI arasında doğrudan akar.

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": {
      "offer": "<offer>"
    },
    "name": "voice_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
offerYesWebRTC SDP offer
voiceNocove
instructionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose a genuinely important trait: audio flows directly between client and OpenAI rather than through the tool, which affects latency/cost expectations. It also notes the returned `answer` is required to connect. Gaps remain on session lifetime, whether a session must be explicitly closed (voice_stop exists), concurrency limits, and auth requirements.

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?

Two tight sentences, front-loaded with the action and followed by the connection contract; no filler. The second sentence is semicolon-compressed but still readable, so it stops just short of ideal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 rightly explains the returned `answer`, which is the key return value. For a session-establishing tool it is still thin: it omits lifecycle/termination, what `instructions` does, and voice-selection guidance, leaving an agent able to connect but unsure how to configure or end the session.

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 coverage is only 33%: `voice` exposes a 26-value enum with a default but no explanation of tonal differences, and `instructions` is entirely undocumented. The description partly compensates by explaining the offer→answer contract, which gives real meaning to the required `offer` parameter, but it says nothing about how to choose a voice or what `instructions` governs.

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?

Opens with a specific verb+resource: 'Realtime sesli oturum açar' (opens a realtime voice session), then adds the WebRTC offer/answer mechanics that make it recognizably distinct from batch-style siblings like speak or listen. It never names an actual sibling (voice_delegate, voice_stop) to contrast against, so the differentiation is inferential rather than explicit.

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?

Usage is implied by the mechanics — the client must produce an SDP offer and connect with the returned answer — so an agent can infer this is the entry point for a live audio channel. However, there is no explicit when-to-use/when-not guidance and no mention of voice_delegate, voice_stop, or speak as alternatives for one-off or terminating interactions.

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