Skip to main content
Glama

Record changeset

record_changeset

Store changed files, patches, git metadata, intent, and session links so subsequent agents can understand what was modified and why.

Instructions

Purpose: Persist a code changeset with files, optional patches, git metadata, and session links. When to use: call after an agent edits or reviews files so future agents can understand what changed and why. Inputs: files contains changed file objects; workspace_id or workspace_uri is required; metadata links commits, branches, intent, and sessions. Side effects: writes changeset and file rows. Output: changeset identifiers and summary fields. Failure modes: raises when no workspace identifier is supplied or payloads are invalid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesList of changed file objects with file_path, status, and optional patch.
branchNoOptional branch name associated with the changeset.
intentNoShort explanation of why the changes were made.
summaryNoHuman-readable summary of the changeset.
metadataNoOptional JSON metadata for tools, test evidence, or external refs.
git_commitNoOptional git commit SHA associated with the changeset.
session_idNoOptional internal session UUID to link to this changeset.
workspace_idNoExisting workspace UUID; required if workspace_uri is omitted.
workspace_uriNoWorkspace root URI used to create or resolve a workspace.
workspace_nameNoOptional display name when creating a workspace from workspace_uri.
session_external_idNoOptional external transcript/session id to link to this changeset.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description must cover behavioral traits. It mentions 'Side effects: writes changeset and file rows' and 'Failure modes: raises when no workspace identifier is supplied or payloads are invalid,' which discloses key behaviors beyond what the schema conveys.

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?

The description is well-structured with labeled sections (Purpose, When to use, Inputs, Side effects, Output, Failure modes). Every sentence provides essential information without redundancy, making it concise and efficient.

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

Completeness5/5

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

Given 11 parameters and moderate complexity, the description covers purpose, usage timing, side effects, failure modes, and input overview. An output schema exists (context signals indicate true), so the description does not need to detail return values, yet it still mentions 'Output: changeset identifiers and summary fields.' This is complete for the agent to decide and invoke the tool.

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?

The input schema has 100% description coverage, so baseline is 3. The description adds value by summarizing the inputs: 'files contains changed file objects; workspace_id or workspace_uri is required; metadata links commits, branches, intent, and sessions,' clarifying relationships and requirements.

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 starts with 'Purpose: Persist a code changeset with files, optional patches, git metadata, and session links,' clearly stating the verb (persist) and resource (code changeset). It distinguishes from siblings like 'get_changeset_detail' and 'explain_change' that have different purposes.

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?

The description says 'When to use: call after an agent edits or reviews files so future agents can understand what changed and why,' providing a clear context. However, it does not explicitly mention when not to use or name alternative tools for other scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/geondongkim/geond-agent-protocol'

If you have feedback or need assistance with the MCP directory API, please join our Discord server