Skip to main content
Glama

Edit session

edit_session
Idempotent

Fix a session, running or finished: start and end (HH:MM on date; an end before the start means it ran past midnight), task, area, project, lever, step, plan item, summary, outcome, attention share, weight. It is classified again after a change. Use it when the user forgot to start or stop the timer, or a session was labelled wrong.

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": {
      "session_id": "<session_id>"
    },
    "name": "edit_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoHH:MM local time
areaNodefault work
dateNolocal date of start and end; default the session's own date
taskNo
startNoHH:MM local time
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
outcomeNo
summaryNo
exclusiveNotrue: nothing else was happening then
projectIdNo
session_idYes
attention_shareNoshare of the session's wall time that was real attention

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. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare it a non-destructive, idempotent write, so the safety burden is light. The description still contributes non-obvious behavior: the session is re-classified after a change (a recompute side effect) and that it works on both running and finished sessions. It does not say whether omitted fields are left unchanged.

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 field inventory is front-loaded in one sentence with the important midnight rule parenthesized right where it matters, and the usage line closes it out. It is dense but every clause carries information; the long field list is the only mild bloat.

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 description covers scope, the recompute consequence, and the main semantic trap (midnight crossing). The remaining gap is update semantics — whether a partial payload leaves other fields untouched — which an agent would reasonably want confirmed.

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?

With 15 parameters and 67% schema coverage, the schema does most of the work. The description adds genuine meaning for the trickiest case — an end earlier than the start means the session crossed midnight, and times are HH:MM on the session date — but leaves weight, attention_share, exclusive and the id-reference fields (itemId, leverId, stepId) unexplained beyond naming them.

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 ('Fix a session, running or finished') and enumerates the mutable fields, so the agent knows exactly what can change. It stops short of naming the sibling tools it is distinct from (start_session, stop_session, add_session), leaving that separation mostly implicit.

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?

Two concrete triggering scenarios are given: the user forgot to start/stop the timer, or a session was labelled wrong. That is clear when-to-use guidance. There is no explicit when-not-to-use or statement that creating a new session belongs to add_session/start_session.

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.