Skip to main content
Glama

start_session

Generate a session key for multi-turn conversations with a fleet agent, then pass it to later invoke_agent calls to preserve context across turns.

Instructions

Generate a fresh session_key for multi-turn conversation with a fleet agent. Pass the returned key to subsequent invoke_agent calls to preserve context. Conversation state is persisted server-side by the agent gateway under this key.

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_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoOptional agent name to validate. The returned key works for any agent but pre-validation surfaces typos early.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 behavioral burden, and it does disclose something valuable: conversation state is persisted server-side by the agent gateway under the key. However, it omits key operational facts an agent needs — session lifetime or expiry, whether keys can be reused, and what happens if invoke_agent is called without a key.

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?

Three tight sentences, front-loaded with the action, then the follow-up usage, then the state-persistence model. Every sentence carries information an agent needs to sequence the call correctly.

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?

For a simple tool with one optional parameter and no output schema, the description covers the return value (session_key), how to consume it, and where state lives. The only meaningful gap is session lifetime/expiry semantics, which matters for long-running conversations.

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 the single optional 'agent' parameter is already fully documented in the schema, including its validation purpose. The description adds no additional meaning about that parameter, 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?

States a precise verb and resource: 'Generate a fresh session_key for multi-turn conversation with a fleet agent.' It also positions the tool in the workflow by naming invoke_agent, so an agent can tell it apart from the invocation siblings without opening any schema.

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?

Explicitly says to pass the returned key to subsequent invoke_agent calls to preserve context, which gives clear when-to-use guidance tied to multi-turn flows. It stops short of stating when a session should not be started (e.g., reusing an existing key) or whether single-shot calls need one at all.

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