Skip to main content
Glama

Search commits across public GitHub repositories

github_search_commits
Read-onlyIdempotent

Search commits across public GitHub repositories by message, author, committer, date or hash. Each result includes the commit message, SHA, author, committer, link and repository. Read-only: returns public data and changes nothing. Costs 1 credit per request.

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": {
      "sort": "<sort>",
      "order": "<order>",
      "count": "<count>"
    },
    "name": "github_search_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashNoCommits with this SHA (or prefix). Maps to `hash:`.
sortYesSort field. Defaults to relevance ("best-match").best-match
countYesNumber of results to return (1–10). Defaults to 10.
mergeNoOnly merge commits (true) or exclude them (false). Maps to `merge:`.
orderYesSort direction. Defaults to "desc".desc
queryNoFree-text search terms, matched against the default fields for this search type, e.g. "web framework".
reposNoLimit to these "owner/name" repositories. Maps to `repo:`.
startNoNumber of results to skip (0–999). Defaults to 0. Only the first 1,000 results of a search can be paged through.
authorNoCommits authored by this GitHub user. Maps to `author:`.
ownersNoLimit to these owners (users or orgs). Maps to `user:`.
cacheOnlyNoReturn only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.
committerNoCommits committed by this GitHub user. Maps to `committer:`.
authoredDateNoFilter by author date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range.
committedDateNoFilter by commit date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range.
cacheMaxAgeHoursNoAccept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / owners / items / pattern
      Previous value: -"^[A-Za-z\\d][A-Za-z\\d_-]{0,38}$"New value: +"^[^\\s/?#]+$"
    • changedInput schema / properties / repos / items / pattern
      Previous value: -"^[A-Za-z\\d][A-Za-z\\d_-]{0,38}\\/[\\w.-]+$"New value: +"^[^\\s/?#]+\\/[^\\s/?#]+$"
  2. Changed2 schema fields changed
    • addedInput schema / properties / cacheMaxAgeHours
      Added value: +{
      +  "description": "Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / cacheOnly
      Added value: +{
      +  "description": "Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description nevertheless adds real value by disclosing the result shape (message, SHA, author, committer, link, repository) and a per-request credit cost, which no annotation or schema field conveys. The flat 'costs 1 credit per request' statement is slightly incomplete given the cacheOnly path that can cost nothing, but it does not contradict the annotations.

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?

Three compact sentences, front-loaded with what is searched and what is returned. The 'Read-only: returns public data and changes nothing' clause partially restates the readOnlyHint annotation, a small redundancy, but nothing else is wasted.

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 15-parameter tool with nested date-range objects and no output schema, the description does the important work: it names the output fields and the credit cost. The only gaps are paging behavior and the cached-vs-live tradeoff, both of which are documented in the schema rather than the description.

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 description coverage is 100%, with every parameter including nested date bounds fully documented, so the baseline is 3. The description's list of searchable dimensions (message, author, committer, date, hash) loosely maps to query/author/committer/authoredDate/hash but adds no syntax or format 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 description gives a specific verb ('Search') and resource ('commits across public GitHub repositories') and enumerates the searchable dimensions: message, author, committer, date, hash. That makes it easy to separate from github_search_code or github_search_issues by resource alone, 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is only implied: the agent can infer this is the tool for commit lookups by message/SHA/author. There is no explicit 'use this when...' guidance, no exclusions, and no mention of when a sibling such as github_search_code would be the better choice.

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