Skip to main content
Glama

Search evidence

search_evidence
Read-onlyIdempotent

Rank stored research observations by query and return each hit with its revision, source, and locator from a consistent snapshot; filter by time or replay the ledger as of a past date.

Instructions

Rank stored observations for a query and return each hit with its revision, source and locator. All hits come from one consistent snapshot. Use known_at to read the ledger as it stood at an earlier time, observed_before to exclude later observations, and target_at to favour observations made near a date.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of hits.
queryYesSearch text; an empty string browses the newest evidence.
scaleNoOnly evidence on exactly this scale or unit.
methodNoOnly evidence measured with exactly this method.
contextNoExact key-value selectors; every hit carries all of them.
subjectNoOnly evidence about exactly this subject.
known_atNoAnswer from the ledger as it stood at this time, ignoring later changes: an ISO 8601 timestamp with a UTC offset.
strategyNoadaptive weighs text relevance by age and quality; lexical keeps only text matches; recent orders by observation time, newest first. nearest requires target_at and orders by observation-time distance.adaptive
variableNoOnly evidence for exactly this variable.
target_atNoFavour evidence observed close to this time: an ISO 8601 timestamp with a UTC offset.
observed_afterNoOnly evidence observed at or after this time: an ISO 8601 timestamp with a UTC offset.
observed_beforeNoOnly evidence observed at or before this time: an ISO 8601 timestamp with a UTC offset.

Output Schema

NameRequiredDescriptionDefault
hitsYes
dense_candidatesYes
lexical_candidatesYes
vector_scan_truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior. The description adds meaningful behavioral context beyond that: all hits come from one consistent snapshot, and each hit carries revision, source, and locator information.

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?

Three tightly written sentences with the core purpose front-loaded. The temporal guidance is grouped efficiently, and there is no filler or redundant restatement.

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 twelve-parameter search tool with an output schema and safety annotations, the description covers the essential behavior: ranking, snapshot consistency, returned fields, and temporal query modes. It leaves sibling routing and strategy choice to the schema or surrounding context, which is a modest gap but not a blocking omission.

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 the input schema already documents all parameters including the temporal controls. The description repeats the meanings of known_at, observed_before, and target_at but adds little beyond the schema's own explanations.

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 specific verb and resource: ranking stored observations for a query and returning hits with revision, source, and locator. It is clear what the tool does, but it does not explicitly differentiate itself from sibling tools like evidence_history or export_evidence_packet.

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?

Gives useful guidance for three temporal parameters: known_at, observed_before, and target_at. However, it does not say when to use this search tool rather than evidence_history, export_evidence_packet, or replay_evidence_packet, and it provides no explicit exclusions.

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