Skip to main content
Glama

Search knowledge articles

kb_search
Read-onlyIdempotent

Search knowledge articles by text across ServiceNow instances, optionally filtering by knowledge base or language; fall back to published kb_knowledge articles when the Knowledge REST API is unavailable.

Instructions

Search knowledge articles by text. Uses the Knowledge REST API; when the instance lacks it, falls back to published articles in the kb_knowledge table and says so (fallback field). kbId is a knowledge base title or sys_id; language is e.g. "en".

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": {
      "text": "<text>"
    },
    "name": "kb_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kbIdNoOnly this knowledge base (title or sys_id).
textYesWords to find in the article title or body.
limitNoMaximum records to return. Defaults to the configured default, capped at maxRecords.
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.
languageNoArticle language code, e.g. "en".
displayValueNoraw = stored values, display = labels, both (default) = value and label when they differ.

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 cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds genuinely new behavior: the Knowledge REST API path, the fallback to published kb_knowledge rows when unavailable, and the 'fallback' field signaling which path ran. That fallback disclosure is material for interpreting results. It omits paging/return-shape details, but the core behavioral risk is covered.

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 short sentences with the core action front-loaded and the fallback caveat following. The closing 'language is e.g. "en"' is slightly redundant with the schema but not distracting.

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 an eight-parameter search tool with no output schema, the definition covers the action, the backend path, the fallback behavior, and the key identifier formats. Remaining gaps (paging via offset/nextOffset, return field shape) are handled by the schema descriptions.

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 the schema already documents all eight parameters including the title-or-sys_id semantics of kbId. The description restates kbId and language rather than adding new meaning, so it sits at the baseline.

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 knowledge articles by text'), which is clearly distinct from retrieval siblings like kb_article_get and kb_list_bases. It does not explicitly name those siblings, so differentiation is implied 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?

Usage is implied by the name and the 'by text' phrasing — an agent can infer this is for keyword lookup rather than fetching a known article. There is no explicit when-to-use/when-not guidance or named alternative for retrieving a single article.

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