Skip to main content
Glama

Add session

add_session

Add past time that was not timed: minutes (ending now, or at end), or start+end as HH:MM on date. For calls, meetings, children, workout or gym, paid work, work done away from the agent, or work the user forgot to start the timer for, or a calendar event that happened (pass its calendar_event_id: the same event is never logged twice). Apps replaying a queued entry pass op_id, so a retry does not count the time twice.

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": "add_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoHH:MM local time
areaNodefault work
dateNoYYYY-MM-DD in the user's timezone
taskYes
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
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
minutesNo
exclusiveNotrue: nothing else was happening then
projectIdNo
calendar_event_idNothe id of the calendar event this time comes from, as your calendar connector gives it (for one occurrence of a recurring event, that occurrence's id); an event already logged is refused

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. Changed1 schema field changed
    • addedInput schema / properties / calendar_event_id
      Added value: +{
      +  "description": "the id of the calendar event this time comes from, as your calendar connector gives it (for one occurrence of a recurring event, that occurrence's id); an event already logged is refused",
      +  "maxLength": 1024,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. Changed1 schema field 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"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare a mutation (readOnlyHint=false) that is not destructive, but the description adds real behavior beyond them: a calendar event already logged is refused, and replaying with op_id makes a retry return the first answer instead of double-counting. This usefully nuances the idempotentHint=false annotation as conditional idempotency rather than contradicting it; missing are permission requirements or what happens when new time overlaps existing sessions.

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?

A single front-loaded paragraph: the core rule comes first, then the use-case list, then the dedupe caveats. The long comma-separated enumeration of use cases is slightly baggy but each item is a genuinely distinct trigger, so little is wasted.

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 a 14-parameter mutation with no output schema, the description covers when to call and the dedupe/idempotency contract well, but says nothing about what is returned or how the linking parameters (itemId, stepId, leverId, projectId, exclusive, weight) should be populated together. Adequate for calling correctly, incomplete for understanding the result.

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 79%, so the baseline is 3, and the description goes beyond it by explaining the two alternative time shapes ('minutes ending now, or at end' vs 'start+end as HH:MM on date') and by spelling out the dedupe contract for calendar_event_id and the agent-versus-app split for op_id. It says nothing about the relationship-based parameters (itemId, stepId, leverId, projectId, weight, exclusive), leaving those entirely to the schema.

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?

The description opens with a precise verb and resource — 'Add past time that was not timed' — and immediately gives the two input shapes (minutes, or start+end on a date). The phrase 'past time that was not timed' implicitly but clearly separates this from start_session/stop_session, letting an agent pick the right tool without opening the sibling schemas.

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 enumerates concrete when-to-use cases: calls, meetings, children, workouts/gym, paid work, work away from the agent, forgotten timers, and calendar events that already happened. What it lacks is an explicit exclusion or named alternative (e.g., 'to correct an existing entry use edit_session'), so the routing guidance is one-sided.

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.