Skip to main content
Glama

getCommitsForIssue

Read-only

Retrieves commits that referenced a specific issue, sorted newest first. Optionally filter by link type (closes/references) and workspace scope.

Instructions

Reverse commit→issue lookup from the persisted enrichment log. Returns commits that referenced the given issue, newest first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueYesIssue ref: `#42`, `42`, or `GH-42`. Normalized to `#N` internally.
linkTypeNoOptional filter — only `closes` or only `references`.
workspaceScopeNo`current` (default) filters to this workspace; `any` returns matches from every workspace the log has seen.
limitNoMax results (default 100).
Behavior4/5

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

Annotations already indicate readOnlyHint=true. Description adds useful behavioral details: returns newest first, uses enrichment log, and implies no side effects. No contradictions.

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?

Two efficient sentences: first explains the reverse lookup and source, second adds ordering. No unnecessary words.

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?

No output schema; description only says 'returns commits'. Lacks details on commit fields, pagination, or error cases. Adequate but could be more complete for an agent to handle responses effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers all parameters with descriptions. Description adds value by explaining issue normalization ('#N internally') and default limit (100), going beyond schema.

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?

Description clearly states the tool performs a reverse commit-to-issue lookup, returns commits that referenced the issue, and orders them newest first. This distinguishes it from siblings like getCommitDetails or fetchGithubIssue.

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?

No explicit guidance on when to use this tool versus alternatives (e.g., fetchGithubIssue). Implies usage via 'persisted enrichment log' but lacks context on limitations or preferred 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/Oolab-labs/patchwork-os'

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