Skip to main content
Glama

commit

Save session state—current work, decisions, next steps, and errors—to persistent memory so future sessions can restore context.

Instructions

Save session state (work, decisions, next steps, errors) to the Sun.

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": {
      "current_work": "<current_work>"
    },
    "name": "commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
errorsNoActive errors or blockers.
contextNoAdditional project background.
projectNoTarget project (default: auto-detected from cwd). Use when committing for a different project.
decisionsNoDecisions made this session.
next_stepsNoConcrete next actions for future sessions.
current_workYesWhat is currently being worked on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It says nothing about whether a commit replaces or merges prior stored state, whether it is idempotent, how errors/next_steps are surfaced to later recalls, or what happens to the project auto-detection when cwd is ambiguous.

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 sentence with no filler. The only drag is the opaque 'to the Sun' phrase, which is terse but costs clarity rather than adding value.

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

Completeness2/5

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

With six parameters, one required, no annotations, and no output schema, the definition should explain commit's relationship to recall/status and what a successful commit produces. Neither is addressed, leaving the agent guessing at a mutation tool's side effects.

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 schema already explains every parameter, including project auto-detection and context. The description's parenthetical field list adds no meaning beyond that and omits project and context entirely, leaving the baseline 3.

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 and resource: save session state, with the types of state named in parentheses (work, decisions, next steps, errors). It does not distinguish this from the closely named siblings remember and update, and 'to the Sun' is an unexplained destination that an agent cannot resolve without outside knowledge.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to call commit versus remember, update, or forget, nor any prerequisite such as completing a work session. Usage is only weakly implied by the phrase 'session state'.

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

Deploy Server

Other Tools