Skip to main content
Glama

Get Workspace changeset

get_workspace_changeset
Read-only

Retrieve a changeset's state, phase, changed and conflicting paths, and revision details to review or accept agent workspace changes without starting a run.

Instructions

Get one changeset: its state and phase, the changed paths (at most 500) and conflicting paths once compared is true, comparison_current_revision for accept_workspace_changeset, and result_revision after an accepted changeset is saved. read_workspace_file reads the worker's version of a file from incoming_revision. No run starts and nothing changes.

Input Schema

NameRequiredDescriptionDefault
changeset_idYesThe changeset_id from submit_workspace_changeset or list_workspace_changesets.
workspace_idYesThe Workspace UUID.

Output Schema

NameRequiredDescriptionDefault
phaseYesThe step the changeset is in: checkpointing, creating_integration and comparing while the comparison runs; review_ready when accept_workspace_changeset can accept it; needs_resolution when it has conflicts; saving_result after accept until result_revision is set; recompare_required when the Workspace changed after the comparison (submit the worker again); then accepted, rejected or failed.
stateYessubmitted (being compared, or ready for review when phase is review_ready), conflicted (the worker and the Workspace changed the same paths; see accept_workspace_changeset for recovery), accepted, rejected or failed.
changesNoThe changed paths, at most 500. get_workspace_changeset returns them; list_workspace_changesets leaves them out.
comparedYesTrue when the comparison is complete and changes and conflicts are known.
conflictsNoThe paths that conflict, when state is conflicted.
no_changeNoTrue when the worker changed no files.
created_atYesWhen the changeset was submitted.
updated_atYesWhen the changeset last changed.
auto_acceptNoSet only for a changeset whose comparison was clean and changed files: pending (the platform may still accept it), accepted (the platform accepted it) or abandoned (the platform stopped and will not accept it).
change_countYesThe number of changed paths.
changeset_idYesThe changeset UUID.
workspace_idYesThe Workspace UUID.
base_revisionYesThe revision the worker's copy started from.
result_revisionNoThe new current revision of the Workspace once an accepted changeset is saved.
terminal_reasonNoWhy a failed changeset failed.
working_copy_idYesThe worker's copy that the changes come from.
changes_truncatedNoTrue when there are more than 500 changed paths.
incoming_revisionYesThe worker's saved revision. read_workspace_file reads its files.
validation_evidenceNoThe evidence given when the changeset was accepted.
comparison_current_revisionNoThe Workspace revision the changes were compared with. accept_workspace_changeset takes it as expected_current_revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.17.1

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so 'No run starts and nothing changes' largely restates structured data. The description nevertheless adds real behavioral context the annotations do not carry: a hard cap of 500 changed paths, the fact that conflicting paths only appear once compared is true, and state-dependent fields (comparison_current_revision vs result_revision) that depend on the changeset's lifecycle stage.

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?

It is two sentences, front-loaded with the core 'get one changeset' purpose before the field inventory. The middle clause is dense but each element (path cap, conflict timing, revision fields) maps to a distinct part of the return value; the trailing read_workspace_file pointer is slightly tangential but useful.

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?

An output schema exists, so the description is not obligated to enumerate return fields, yet it usefully explains the state-dependent ones. Combined with the read-only annotations and full schema coverage, an agent has enough to invoke it correctly; the only gap is the absence of explicit sibling routing guidance.

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% and both parameters are documented in the schema (including the changeset_id provenance from submit_workspace_changeset or list_workspace_changesets). The description adds no format, syntax, or constraint detail for the two IDs, so the baseline 3 applies.

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 states a specific verb and resource ('Get one changeset') and enumerates what the result contains (state, phase, changed paths, conflicting paths, revisions), which is far beyond a restatement of the name. It implicitly separates itself from list_workspace_changesets via 'one changeset', but never names that sibling explicitly.

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?

Usage is implied through field-level routing: comparison_current_revision is flagged as the input for accept_workspace_changeset and result_revision appears after an accepted changeset, and read_workspace_file is named as the way to read a worker's file version. However, there is no explicit statement of when to call this tool versus list_workspace_changesets, nor any exclusion or precondition guidance.

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