Skip to main content
Glama

Search incidents

incident_search
Read-onlyIdempotent

Search and filter ServiceNow incidents by text, state, priority, caller, assignment group, or date; return open or closed records newest first.

Instructions

Find incidents, newest first. Open ones only unless active is false. State is a label (e.g. "In Progress"); people and groups can be names or sys_ids. text matches short description, description or number. query adds an encoded query (ANDed).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "incident_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoWords to find in the short description, description or number.
limitNoMaximum records to return. Defaults to the configured default, capped at maxRecords.
queryNoExtra encoded query, ANDed with the rest.
stateNoState label, e.g. "In Progress". See choice_list.
activeNotrue (default) = open incidents, false = closed ones.
callerNoCaller user name, email, full name or sys_id.
fieldsNoField names to return (dot-walking allowed, e.g. caller_id.name). Default: all.
offsetNoRecords to skip (paging). Use nextOffset from the previous result.
instanceNoInstance alias from the config (see instance_list). Defaults to the default instance.
priorityNoPriority 1 (critical) to 5.
openedAfterNoOnly incidents opened on or after this date (YYYY-MM-DD).
assignedToMeNoOnly incidents assigned to the connected user.
displayValueNoraw = stored values, display = labels, both (default) = value and label when they differ.
assignmentGroupNoGroup name or sys_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world semantics, so the description only needs to add behavior beyond that — and it does: result ordering (newest first) and the hidden open-only default that would otherwise cause an agent to silently miss closed incidents. It stops short of mentioning paging behavior or result shape, but those are secondary for a read-only search.

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?

Five short, front-loaded sentences: purpose first, then the default filter, then parameter nuances. The telegraphic fragments ("query adds an encoded query (ANDed)") are efficient but slightly clipped, which keeps it just under top marks.

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 14-parameter, zero-required search tool with no output schema, the description covers the critical defaults (open-only scope, newest-first ordering, limit capping is left to schema) that an agent needs to call it correctly. Missing only minor items like paging semantics, which the offset schema description already handles.

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%, so per-dimension baseline is 3. The description restates the text matching fields and the ANDed query, both already documented in the schema, and its note that people/groups accept names or sys_ids largely duplicates the caller and assignmentGroup schema text. It adds little semantic meaning beyond the structured fields.

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?

"Find incidents, newest first" gives a specific verb and resource plus a sort order, so the agent can distinguish it from the single-record lookups in the sibling list. It never names an actual alternative (e.g. table_query or incident_get), so differentiation is inferred from the description rather than stated.

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 description states the default filtering behavior ("Open ones only unless active is false"), which is genuinely useful context for choosing this tool. However, it gives no explicit when-to-use/when-not guidance and no routing to alternatives for person, group, or generic table lookups.

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