Skip to main content
Glama

Commit Work Session

commit_work_session
DestructiveIdempotent

Atomically finalise a work session: create accounts + transactions + rules and apply the template in a single DB transaction (all-or-nothing). Idempotent on an already-committed session. Requires confirmation: true to execute.

Input Schema

NameRequiredDescriptionDefault
sessionIdYesWorkSession id
confirmationYesMust be true to execute the mutation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Goes beyond annotations by disclosing the atomic all-or-nothing transaction semantics, idempotency on already-committed sessions, and the confirmation gate. These are valuable behavioral traits. Missing: whether permissions or a specific session state are required before commit, and what happens to existing data if the session is partial.

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?

Two tight sentences, front-loaded with the action and atomicity guarantee, followed by idempotency and the confirmation requirement. No filler; every clause carries operational information.

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 destructive, idempotent mutation with no output schema and 100% schema coverage, the description covers the essential safety and atomicity profile. It stops short of describing the return value or post-commit state, and doesn't state preconditions (session must exist and be uncommitted), which would complete the picture.

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 100%, so baseline is 3. The description adds meaning beyond the schema by explaining that confirmation must be true to execute (a gate, not just a boolean) and by tying sessionId implicitly to the 'already-committed session' idempotency behavior. Slightly above baseline due to the confirmation semantics being front-loaded.

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?

States a specific verb (atomically finalise) and resource (work session), and enumerates exactly what gets created (accounts + transactions + rules + template application). Clearly distinguishable from sibling tools like get_work_session, submit_work_session_answer, and commit_import, which operate on different scopes.

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

Usage Guidelines3/5

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

The description implies usage through 'Atomically finalise a work session' and 'Requires confirmation: true,' suggesting this is the terminal step of a session flow. However, it doesn't explicitly state when to use this versus alternatives like submit_work_session_answer or get_work_session, nor does it note prerequisites (e.g., a session must be in a draft state).

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.

Resources