Skip to main content
Glama

search_history

Read-only

Trace when text was added to or removed from documents across git commits, newest first, including deleted content, to answer when a change was decided or which version introduced it.

Instructions

Search across time: the commits where a string entered or left a doc (git pickaxe), newest first, with the files they changed. For 'when did we decide X', 'which version introduced this', or text since deleted; search_docs only sees the present. truncated: more may exist.

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": {
      "query": "<query>"
    },
    "name": "search_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost commits to return, newest first; `truncated` says more exist.
queryYesThe text to track.
regexNoMatch changed lines with a regex (-G) instead of counting exact occurrences (-S).
path_prefixNoRestrict to a folder (or a file), e.g. 'projets'.

Output Schema

NameRequiredDescriptionDefault
queryYes
regexNo
matchesYes
truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.8.0
    • addedInput schema / properties / limit / description
      Added value: +"Most commits to return, newest first; `truncated` says more exist."
  2. First observedv2.7.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds result ordering, the fact that each commit comes with the files it changed, and the meaning of the `truncated` flag. It does not discuss cost or latency of pickaxe scanning over history, which is the one behavior an agent might still need.

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?

Dense and front-loaded: mechanism, ordering, and return shape come first, then routing to the sibling. The closing `truncated` note overlaps with what the `limit` parameter already says, making it slightly redundant and terse to the point of being cryptic out of context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no prose, and annotations cover the safety profile; the remaining essentials for correct invocation (history scope, ordering, path restriction intent, truncation semantics) are all present. Nothing an agent needs in order to call this correctly is missing.

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%, so all four parameters are already documented, including the -G/-S distinction in `regex`. The description adds only the framing that the search tracks occurrences 'entering or leaving' a doc, which is a marginal restatement rather than new syntax or format detail. Baseline 3 applies.

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?

States a specific verb and resource ('search across time: the commits where a string entered or left a doc') plus the underlying mechanism ('git pickaxe') and ordering ('newest first'). It also explicitly contrasts the scope with search_docs, so an agent can separate the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives concrete triggering questions ('when did we decide X', 'which version introduced this'), a capability case ('text since deleted'), and names the alternative with the condition that disqualifies it ('search_docs only sees the present'). When-to-use and when-to-use-something-else are both covered.

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