Skip to main content
Glama

workspace_status

Checks which commit a repository's build branch currently points to without modifying the repository. Use it to verify build branch state before running builds or tests.

Instructions

查看目标仓库的构建分支当前指向哪个 commit(不修改任何东西)。

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_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYes目标仓库 owner/name
branchNo构建分支名,默认 build-runner

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure, and it does supply the key one: 不修改任何东西, i.e. a pure read with no side effects. It says nothing about behavior for a nonexistent repo or branch, permissions needed, or what is reported when the branch has no commit, leaving meaningful gaps for an unannotated tool.

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 sentence with the action front-loaded and the no-side-effects guarantee attached as a parenthetical. Nothing is redundant and nothing is padding.

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 two-parameter read-only tool with full schema coverage and no output schema, the definition covers what it does and that it is safe. It falls just short of complete because it does not indicate the return shape (e.g. commit hash plus message) or failure behavior for a missing repo/branch.

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%, so repo and the defaulted branch are already documented. The description adds only the framing that the branch in question is the build branch, which slightly clarifies intent but contributes no format or constraint detail beyond the schema.

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 verb 查看 (view) and the resource 构建分支当前指向的 commit (the commit the build branch currently points to) are both stated precisely, so the agent knows this is a read of branch HEAD state rather than a build action. It does not name a sibling it should be preferred over, which keeps it from a 5.

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 only implied by the purpose: it is the read-only way to inspect a branch's current commit, contrasted implicitly with the mutating siblings like prepare_workspace and workspace_reset. There is no explicit 'use this when / not when' or routing statement.

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