Skip to main content
Glama

agent_session_start

Starts a new trackable agent session for a goal and returns its ID for later resume. Begin a fresh task, or pass parent_session_id to chain it to a prior run.

Instructions

Start a new agent session (a run with a goal). Returns the created session including its id. Use when beginning a fresh task that you want to track and resume. Pass parent_session_id to chain a resumed run to its predecessor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalNoThe A-Z objective for this run
roleNoOptional role this session plays (frontend, backend, design, ...). Usually inferred at boot from the matched goal node instead.
agentYesStable agent slug
projectNoOptional project slug within the workspace
metadataNoArbitrary run metadata
workspaceNoWorkspace slug this run operates in
agent_nameNoHuman-readable name (used only on first creation)
parent_session_idNoId of the session this one resumes/continues

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that a session is created and that the response includes the id, but says nothing about side effects, whether re-calling with the same agent/goal is idempotent or duplicates, or error behavior for a mutation-style tool.

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 sentences, each earning its place: definition, return value, and usage trigger come first, with the parent_session_id note last. No filler or redundancy.

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

Completeness3/5

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

For an 8-parameter creation tool with no annotations and no output schema, the description covers purpose, usage, and the return shape adequately. It omits behavioral details that matter for a creation call, such as what happens to existing sessions or how errors surface.

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%, so the baseline is 3. The description adds genuine meaning only for parent_session_id ('chain a resumed run to its predecessor'), while the other seven parameters are left entirely to the schema.

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?

States a specific verb+resource ('Start a new agent session') and clarifies the domain term as 'a run with a goal', so an agent knows exactly what is being created. It does not explicitly name the sibling it contrasts with (agent_resume), leaving some differentiation to inference.

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?

Gives a clear trigger ('Use when beginning a fresh task that you want to track and resume') plus a specific conditional for parent_session_id. It stops short of stating when NOT to use it versus agent_resume or where a resumed run belongs.

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