Skip to main content
Glama

Search Incidents

search_incidents
Read-onlyIdempotent

Search the AI Incident Database (stored copy of its weekly public snapshot, dated in every answer). Combines free-text with date range filters. Returns incident IDs, titles, dates, and descriptions, newest first.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "facial recognition bias"
    },
    "name": "search_incidents"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo1-200 (default 25)
queryNoFree-text. Every word must appear somewhere in the incident title or description, in any order, "facial recognition bias" finds records mentioning all three, not that exact phrase. Fewer words match more.
offsetNo0-based offset
end_dateNoYYYY-MM-DD upper bound
start_dateNoYYYY-MM-DD lower bound on incident date

Output Schema

NameRequiredDescriptionDefault
offsetNoThe offset this page started at, echoed back.
has_moreNoTrue if more incidents exist past this page. AIID exposes no total count, so this is the only way to distinguish "end of results" from an empty response.
returnedNoHow many incidents are in this page (<= the requested limit).
incidentsNoList of matching incidents

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Free-text. Every word must appear somewhere in the incident title or description, in any order — \"facial recognition bias\" finds records mentioning all three, not that exact phrase. Fewer words match more."New value: +"Free-text. Every word must appear somewhere in the incident title or description, in any order, \"facial recognition bias\" finds records mentioning all three, not that exact phrase. Fewer words match more."
  2. Changed3 schema fields changed
    • addedOutput schema / properties / has_more
      Added value: +{
      +  "description": "True if more incidents exist past this page. AIID exposes no total count, so this is the only way to distinguish \"end of results\" from an empty response.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / offset
      Added value: +{
      +  "description": "The offset this page started at, echoed back.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / returned
      Added value: +{
      +  "description": "How many incidents are in this page (<= the requested limit).",
      +  "type": "number"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "query": "facial recognition bias"
      -  },
      -  {
      -    "end_date": "2024-01-01",
      -    "limit": 50,
      -    "query": "chatbot misinformation",
      -    "start_date": "2023-01-01"
      -  }
      -]New value: +[
      +  {
      +    "query": "facial recognition bias"
      +  },
      +  {
      +    "end_date": "2025-01-01",
      +    "limit": 50,
      +    "query": "chatbot misinformation",
      +    "start_date": "2024-01-01"
      +  }
      +]
    • changedInput schema / properties / query / description
      Previous value: -"Free-text — title / description"New value: +"Free-text. Every word must appear somewhere in the incident title or description, in any order — \"facial recognition bias\" finds records mentioning all three, not that exact phrase. Fewer words match more."
  4. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "facial recognition bias"
      +  },
      +  {
      +    "end_date": "2024-01-01",
      +    "limit": 50,
      +    "query": "chatbot misinformation",
      +    "start_date": "2023-01-01"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "incidents": {
      +      "description": "List of matching incidents",
      +      "items": {
      +        "properties": {
      +          "date": {
      +            "description": "Incident date in YYYY-MM-DD format",
      +            "type": "string"
      +          },
      +          "description": {
      +            "description": "Short description of the incident",
      +            "type": "string"
      +          },
      +          "editors_notes": {
      +            "description": "Editorial notes on the incident",
      +            "type": "string"
      +          },
      +          "incident_id": {
      +            "description": "Unique incident identifier",
      +            "type": "number"
      +          },
      +          "title": {
      +            "description": "Incident title",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  5. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive. The description adds genuinely useful context that annotations cannot carry: results come from a dated weekly snapshot copy, the snapshot date appears in every answer, and ordering is newest first. It says nothing about matching behavior implications (recall tradeoffs of the AND-style matching), result caps, or what the dated snapshot means for very recent incidents.

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 short sentences, front-loaded with what the tool is and where the data comes from, followed by filtering and output order. No filler or repetition, and the snapshot-provenance detail is given before the mechanics.

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 an output schema present, the description need not explain returns, and it still summarizes them. Annotations cover safety, and the description covers data provenance and ordering. The remaining gap is guidance on tool selection among the several incident-related siblings, which matters for a five-parameter search tool.

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 coverage is 100%, and the schema itself explains the AND-matching semantics, defaults, and date formats thoroughly. The description only echoes 'free-text with date range filters' without adding format or default details, so 3 is the correct baseline when the schema does the heavy lifting.

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 ('Search the AI Incident Database') plus its scope (stored copy of the weekly public snapshot) and output shape (IDs, titles, dates, descriptions, newest first). It never names the related siblings such as get_incident, search_within, or ai_incident_db_list_recent, so the agent must infer the boundary itself.

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?

The line 'Combines free-text with date range filters' implies when this tool fits — queries that mix keywords with time bounds. There is no explicit when-not-to-use guidance and no pointer to alternatives for single-record lookup or listing recent incidents, leaving the routing decision to inference.

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.