Skip to main content
Glama

Start session

start_session

Start a session of work and, if none is running, the timer. Returns a verdict: ok | stop | plan_first. On "stop" NO session is created: relay the message, ask the user; if they insist, call again with override=true. Several sessions may run at once (two terminals) and share attention by weight. Apps replaying a queued start pass op_id, their own session_id and start_at; an agent leaves all three out.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task": "<task>"
    },
    "name": "start_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNodefault work
taskYeswhat you are about to do, specific
op_idNofor apps replaying queued requests: an id the app minted before its first attempt and reuses on retries, so the write is applied once and a retry gets the first answer back. Do not invent one; an agent calling interactively leaves it out
itemIdNoplan item id from get_plan or get_now
stepIdNopath step id
weightNoattention weight vs other sessions at the same time, default 1
leverIdNolever id from get_goal
minutesNolength for a down timer, or the stand-up interval for an up timer
overrideNotrue only after the user confirmed past a stop
start_atNowhen the work began as ISO 8601 with offset, e.g. 2026-10-20T14:05:00+02:00. For apps delivering a request queued offline; an agent calling interactively leaves it out. Rejected before the session start; a clock more than 2 minutes ahead of the server is taken as now
directionNoup (default) counts elapsed time and runs until stopped, with a stand-up reminder every workMin; down is a fixed timebox, for a break
exclusiveNotrue: nothing else was happening then
projectIdNo
workplaceNo
session_idNofor apps: the session id the app minted itself. Create-if-absent: if a session with this id exists it is returned and nothing is created. An agent leaves it out; the server mints the id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / itemId / description
      Previous value: -"plan item id"New value: +"plan item id from get_plan or get_now"
    • addedInput schema / properties / leverId / description
      Added value: +"lever id from get_goal"
  2. Changed3 schema fields changed
    • addedInput schema / properties / op_id
      Added value: +{
      +  "description": "for apps replaying queued requests: an id the app minted before its first attempt and reuses on retries, so the write is applied once and a retry gets the first answer back. Do not invent one; an agent calling interactively leaves it out",
      +  "maxLength": 128,
      +  "minLength": 8,
      +  "type": "string"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "for apps: the session id the app minted itself. Create-if-absent: if a session with this id exists it is returned and nothing is created. An agent leaves it out; the server mints the id",
      +  "maxLength": 64,
      +  "minLength": 6,
      +  "type": "string"
      +}
    • addedInput schema / properties / start_at
      Added value: +{
      +  "description": "when the work began as ISO 8601 with offset, e.g. 2026-10-20T14:05:00+02:00. For apps delivering a request queued offline; an agent calling interactively leaves it out. Rejected before the session start; a clock more than 2 minutes ahead of the server is taken as now",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Well beyond what the annotations declare: it discloses the verdict return values, that a 'stop' verdict creates nothing, that multiple concurrent sessions share attention by weight, and the exact retry/replay semantics of op_id and create-if-absent session_id. The annotation idempotentHint=false is consistent rather than contradicted, since deduplication only applies when the caller supplies those keys.

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?

Front-loaded with the action and the verdict vocabulary, then ordered by importance (stop flow, concurrency, app-vs-agent). It is dense and packed into two long sentences, which costs some scanability, but no sentence is filler.

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 15-parameter mutation tool with no output schema, the definition covers the return contract, the gated-failure path, and caller-type distinctions. The one gap is that 'plan_first' is never explained, so an agent must infer that it should consult the planning tools before retrying.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 87%, yet the description still adds real meaning: who should pass op_id/session_id/start_at and who should not, that override requires prior user confirmation, and that weight is relative attention across simultaneous sessions. The remaining parameters (task, area, minutes, direction) 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?

It states a specific verb and resource (start a work session, plus the timer if none is running) and immediately names the return contract (ok | stop | plan_first). What it lacks is any explicit distinction from the sibling add_session, which an agent must choose against.

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?

The conditional guidance is unusually strong: on a 'stop' verdict nothing is created, the message should be relayed and the user asked, and override=true only after confirmation. It also cleanly splits the app path (pass op_id, session_id, start_at) from the agent path (leave all three out). No explicit routing to an alternative sibling, so not a 5.

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.