Skip to main content
Glama

Get a knowledge article

kb_article_get
Read-onlyIdempotent

Retrieve a ServiceNow knowledge article by number or sys_id to return its HTML text and metadata, with automatic fallback to the kb_knowledge table and truncation for long content.

Instructions

Get one knowledge article by number (KB0010001) or sys_id: HTML text plus metadata. Uses the Knowledge REST API, falling back to the kb_knowledge table (fallback field). Long text is cut to fit the result limit (textTruncated).

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": {
      "id": "<id>"
    },
    "name": "kb_article_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record sys_id (32 hex characters) or its number, e.g. INC0010001.
instanceNoInstance alias from the config (see instance_list). Defaults to the default instance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description earns extra credit by disclosing a retrieval-path fallback (REST API then kb_knowledge table, surfaced as the 'fallback' field) and output truncation ('Long text is cut to fit the result limit', flagged via 'textTruncated'), both behaviors the annotations cannot express.

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?

Compact, front-loaded, and free of filler: identifiers first, return type second, then the two behavioral caveats. The parenthetical field names ('fallback field', 'textTruncated') are terse and slightly cryptic but do real work.

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 two-parameter read tool with no output schema, the description covers identifier forms, return shape (HTML plus metadata), degradation on long text, and source fallback. What is missing is minor: error behavior when the id does not resolve to an article.

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 'id' and 'instance' are already documented, and the description mostly restates that id accepts a number or sys_id. It does add the KB-number format example, but does not explain the 'instance' alias beyond what the schema says (pointing at instance_list). 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 ('Get one knowledge article'), the accepted identifier forms ('by number (KB0010001) or sys_id'), and what comes back ('HTML text plus metadata'). That singles it out from the search/list siblings (kb_search, kb_list_bases), which return sets rather than one record.

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 phrase 'Get one ... by number or sys_id' implies the tool needs a known identifier, which separates it from search, but no alternative is ever named and there is no explicit when-not guidance. An agent must infer that kb_search is the right path when it only has a title or keyword.

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