Skip to main content
Glama

Start AI session

start_ai_session
Idempotent

Creates an explicit isolated AI execution Session for Hosts or workflows that cannot use automatic Host conversation binding. ChatGPT tool calls carrying the anonymized openai/session marker are automatically bound by ordinary device tools, so users do not need to invoke this tool for normal computer use. The returned ai_session_id remains authoritative when an explicit Session is requested. session_key is only a short-lived exact-start retry hint and never a Chat identity.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "start_ai_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_keyNoOptional opaque start retry/idempotency hint. It is not a Chat identity. Reuse it only for the exact same start retry together with the same workflow_id.
workflow_idNoOptional opaque workflow id. Omit to let the server generate one.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and readOnlyHint=false, so the description only needs to add nuance. It does clarify the idempotency contract (session_key is a 'exact-start retry hint') and that ai_session_id is authoritative after creation, which is useful context beyond the annotations. It does not explain whether sessions expire, how many can exist concurrently, or what happens if the same workflow_id is reused.

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 purpose is front-loaded in the first clause, and each subsequent sentence addresses a distinct concern: binding behavior, return authority, and retry-hint semantics. The prose is dense with jargon but has no filler, and nothing is repeated.

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 only two optional parameters, an output schema present, and full annotations, the definition covers what an agent needs to decide and call correctly. Minor gaps remain around session lifespan and concurrency, but return-value documentation is rightly delegated to the output schema.

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 100% and the description's notes on session_key ('only a short-lived exact-start retry hint and never a Chat identity') closely mirror the schema's own wording. It adds no new detail on workflow_id beyond 'omit to let the server generate one' already in the schema. Baseline 3 applies since the schema carries the load.

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?

The description opens with a specific verb and resource ('Creates an explicit isolated AI execution Session') and scopes the audience to Hosts or workflows that cannot use automatic binding. It clarifies the distinction from ordinary device tools that auto-bind, so an agent can tell this is not a routine call. It stops short of naming lifecycle siblings like end_ai_session, ai_session_heartbeat, or get_ai_session_status.

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 both when to use it ('Hosts or workflows that cannot use automatic Host conversation binding') and when not to ('users do not need to invoke this tool for normal computer use'), which is unusually explicit guidance. What it lacks is a pointer to the natural alternatives or follow-up tools such as end_ai_session, leaving the session lifecycle to inference.

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