Skip to main content
Glama

KAT / 한국AI통신

통화 오디오 스트림 시작 — 진행 중 통화의 소리를 WebSocket 으로 실시간 전송

start_call_stream

진행 중인 통화의 오디오를 끊지 않고 지정한 WebSocket(ws:// 또는 wss:// 공개 주소)으로 실시간 전송한다. 실시간 음성 인식·모니터링용이며 통화 상대에게는 아무 소리도 들리지 않는다. 수신 전용이라 WebSocket 으로 보낸 메시지는 통화에 반영되지 않는다. 통화 음성이 외부 서버로 나가므로 사용자가 지정한 주소인지 확인한 뒤 한 번만 실행한다. 통화당 동시 1개 — 이미 열려 있으면 STREAM_LIMIT_EXCEEDED(409). ·전환 뒤에도 통화가 끝날 때까지 이어지고, 통화가 끝나면 자동으로 닫힌다. 반환된 streamId(또는 name)로 stop_call_stream 을 호출해 먼저 끝낼 수 있다. 무료.

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": {
      "callId": "<callId>",
      "url": "<url>"
    },
    "name": "start_call_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes오디오를 받을 WebSocket 주소. ws:// 또는 wss:// 공개 주소만 허용.
nameNo스트림 이름(64자 이하). 주면 stop_call_stream 에 streamId 대신 쓸 수 있다.
trackNo보낼 방향. inbound_track(기본)=이 통화 상대(발신자)의 목소리, outbound_track=우리 쪽에서 상대에게 들려주는 소리(<Dial> 상대·안내), both_tracks=둘 다 트랙을 나눠 한 연결로.
callIdYes진행 중인 통화 ID(CA…). 이미 끝난 통화는 409.
parametersNostart 메시지의 customParameters 로 그대로 실을 값(최대 99개, 값은 문자열).
statusCallbackNostream-started·stream-stopped·stream-error 를 POST 로 받을 공개 http(s) 주소.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description covers what the annotations do not: the WebSocket receives audio only, the counterpart hears nothing, the stream survives <Dial> and transfers until the call ends, and the stream closes automatically when the call ends. It also warns that call audio leaves for an external server, which is privacy context that matters for starting an outbound stream, and it names the free tier.

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?

The text is front-loaded with the key verb and the target, and each following sentence adds a distinct operational fact: silence to the counterpart, receive-only, a privacy check, one-per-call with a 409, lifetime behavior, and cleanup via stop_call_stream. It is dense, but little could be cut without losing an operational detail.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, nested-object tool with no output schema, the description covers the missing pieces: the lifetime of the stream relative to the call, the error behavior, and what the returned streamId or name is for. An agent has enough information to call this correctly and to clean up afterward.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents every parameter and the baseline is 3. The description adds meaning the schema does not: it calls the address public and ws:// or wss://, and it explains that the returned streamId or name is what you pass to stop_call_stream, which connects the two tools.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: stream the audio of an in-progress call in real time to a given WebSocket (ws:// or wss://). It also explicitly distinguishes itself from stop_call_stream as its counterpart, so an agent can pick between them without reading either schema.

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

Usage Guidelines5/5

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

Gives the concrete use case (real-time speech recognition and monitoring) and the exclusions: the other party hears nothing, messages sent over the WebSocket are ignored, and the agent should verify the address is one the user specified before running it once. It also states the one-per-call limit and the STREAM_LIMIT_EXCEEDED (409) outcome, and notes that the stream persists across <Dial> and transfers but closes when the call ends.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources