Skip to main content
Glama

セッションを作る

create_session

アバターの枠を確保し、ブラウザへ渡す client_token と WebRTC の接続情報を返します。課金はセッションが開いていた時間で数えるので、終わったら end_session してください。 (api_key が必要: 管理画面で発行したキー)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
speedNo発話速度 0.8〜1.2 (既定 1.0)
api_keyYesAPI キー (sk_live_…)
languageNo読み上げ言語 (既定 ja)
metadataNo自由なラベル
voice_idNo声。edge-tts の音声名 (例 ja-JP-NanamiNeural) か gemini:<声>:<性別>:<年代>:<調子>。省略でアバターの既定
avatar_idYeslist_avatars の id
idle_timeout_secondsNo無発話で自動終了する秒数 30〜1800 (既定 180)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (non-read-only, non-idempotent, non-destructive), the description discloses the cost model (time-based billing tied to session duration), the auth requirement and where to obtain the key, and the payload returned. It does not mention concurrency limits or what happens on repeated calls despite idempotentHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the primary effect and return values come first, followed by the billing/cleanup obligation and the auth prerequisite. No redundant restatement of the tool name or title.

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

Completeness4/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 usefully names the returned client_token and WebRTC info, and it covers auth, billing, and cleanup for a mutation-style tool with a nested object parameter. Error behavior and session concurrency limits are the remaining gaps.

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 description coverage is 100% and every parameter, including nested metadata and voice_id syntax, is documented in the schema. The description only reinforces the api_key requirement rather than adding parameter-level meaning, so the baseline of 3 applies.

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?

The description names a specific verb and resource — reserves an avatar slot and returns a client_token plus WebRTC connection info. This is clearly distinguishable from siblings like get_session, list_sessions, and end_session.

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

Usage Guidelines4/5

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

It states the lifecycle context explicitly: billing accrues while the session is open, so end_session must be called when finished, and an api_key issued in the admin console is required. It stops short of naming alternative entry points or conditions when-not to use it.

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