Skip to main content
Glama
Omnidim

@omnidim-ai/mcp-server

by Omnidim

createSession

Create a short-lived voice session that returns a single-use WebSocket URL, enabling a client to connect and talk with your agent.

Instructions

Create a voice Session: a short-lived, single-conversation reservation that lets a client hold a live voice chat with your agent. This is step 1 of 2. Creating the Session does not start any audio on its own; it returns a ws_url that a client then connects to over WebSocket to actually talk.

Call this endpoint from your server with your API key, and return only the ws_url to your client. The API key must never reach the browser. The ws_url is the only thing the client needs, and it is safe to hand out because it is single-use and expires. For how to connect and talk, see "Connect the client and talk" below the request details.

(Tags: Sessions)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestBodyYesThe JSON request body.
Behavior5/5

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

Goes beyond annotations by disclosing that the Session does not start audio on its own, returns a single-use expiring ws_url, and that the API key must never reach the browser. These are important behavioral traits not captured in the annotations (readOnlyHint=false, destructiveHint=false) and add significant value.

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 description is structured with a clear first paragraph stating purpose and behavior, and a second paragraph for usage/security. Every sentence contributes, but the 'see below' pointer and tag add slight verbosity. Still efficient and front-loaded.

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?

Given the complexity (nested requestBody, no output schema, minimal annotations), the description is complete: it explains the two-step process, the ws_url return value, server-side invocation, client handoff, and security implications of the session. No important context is missing.

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?

The input schema already has 100% coverage with descriptions for agent_id, type, and custom_variables. The description does not add new parameter-specific semantics, so the baseline of 3 applies per the rubric for high schema coverage.

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 clearly states 'Create a voice Session' and elaborates with a specific definition: 'a short-lived, single-conversation reservation that lets a client hold a live voice chat with your agent.' This distinguishes it from sibling tools like createAgent or createBulkCall by focusing on the session-specific purpose.

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?

Provides explicit guidance: 'This is step 1 of 2', explains that creating does not start audio, and instructs to call from server with API key, returning only ws_url to the client. It also clarifies when not to give the API key to the browser, offering clear when-to-use and security context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Omnidim/omnidim-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server