Skip to main content
Glama

workspace_reset

Reset a repository's build branch to a base branch and clear accumulated history, keeping long-lived build branches clean for future builds.

Instructions

把构建分支重置回某个基准分支,清掉累积的历史(构建分支会被长期保留)。

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": {
      "repo": "<repo>"
    },
    "name": "workspace_reset"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYes目标仓库 owner/name
branchNo构建分支名,默认 build-runner
baseRefNo重置到的基准分支,默认 main

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose two non-obvious traits: history on the build branch is destroyed, and the build branch itself persists long-term rather than being deleted. It says nothing about irreversibility, permissions, remote effects, or whether the operation is a force-push equivalent.

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?

A single short sentence with the action front-loaded and no filler. The parenthetical retention note is the only addition and it carries real information.

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 history-rewriting mutation with no annotations and no output schema, the description covers what changes but omits the risk profile an agent needs before calling it. Adequate but with clear gaps around safety and 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 coverage is 100%, and the schema already documents repo, branch, and baseRef with defaults. The description only restates that a base branch is the reset target, adding no format, default, or edge-case detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 names a specific verb+resource pair (reset the build branch back to a base branch) and explains the effect (clearing accumulated history). It is clearly distinct from workspace_status or prepare_workspace, though it never explicitly contrasts itself with those siblings.

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 when-to-use guidance, no prerequisites, and no mention of alternatives such as prepare_workspace. An agent can only infer from context that this is a pre-run cleanup step; it is never stated.

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