Skip to main content
Glama

List a project's commits

ListCommits
Read-onlyIdempotent

A github project's branch commits that change its directory, newest first, 30 a page, with whether the files are at it and its last deploy. To roll back: DeployProject with an older commit (volumes keep their current data). FAILED_PRECONDITION = a files project (it rolls back with DeployProject.rollback_deploy_id), no such branch, or before_commit not on it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ListCommits"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceNoThe workspace: its id or name (ListWorkspaces). Omit when the account has one.
project_idNo
before_commitNoThe previous page's last sha. Empty = from the newest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workspace
      Added value: +{
      +  "description": "The workspace: its id or name (ListWorkspaces). Omit when the account has one.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive/openWorld, and the description adds genuinely new behavior: pagination size (30 a page), newest-first ordering, the fields carried per commit, and the semantic meaning of FAILED_PRECONDITION. The caution that rollback via DeployProject keeps volumes' current data is real operational context not present in annotations. It does not describe total counts or how deep pagination can go, but the added value is substantial.

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?

Front-loaded with what it lists, then rollback alternative, then error semantics — a sensible order with no filler sentences. However, the compressed noun-phrase style ('with whether the files are at it and its last deploy') costs readability, forcing the agent to parse rather than read directly.

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?

With no output schema, the description appropriately names the per-commit fields returned, and it covers pagination, ordering, and error conditions for a read-only listing tool. The main residual gap is project_id, which is required in practice for a per-project listing yet undocumented in either the schema or description.

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 schema documents workspace (with the omit-when-single-account rule) and before_commit (previous page's last sha, empty = newest), covering most of the 67% coverage; project_id is undocumented in both places. The description supplements this by implying pagination ('30 a page') and by stating that before_commit must be a commit on the branch, otherwise FAILED_PRECONDITION. That adds failure semantics beyond the schema's cursor explanation.

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?

States a concrete verb and resource: lists a GitHub project's branch commits that change its directory, with ordering (newest first) and page size (30). The scope and content of the listing are clear, though the telegraphic phrasing ('with whether the files are at it and its last deploy') makes the returned fields slightly ambiguous. It also distinguishes the rollback path by naming DeployProject, so an agent can separate read-listing from its destructive sibling.

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?

Explicitly routes rollback intent to DeployProject with an older commit, and notes the exception for files projects (DeployProject.rollback_deploy_id). It also enumerates the FAILED_PRECONDITION triggers (files project, nonexistent branch, before_commit not on branch), which tells the agent what failure means. It lacks explicit 'when not to use' guidance versus other listing tools, but no sibling here clearly overlaps.

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