Skip to main content
Glama
jschuller

ServiceNow MCP Server

by jschuller

Get Ci

get_ci
Read-onlyIdempotent

Retrieve a single CMDB configuration item by sys_id, with optional class and display-value settings, to inspect CI details in ServiceNow.

Instructions

Get a single CMDB configuration item by sys_id

Input Schema

NameRequiredDescriptionDefault
sys_idYesThe sys_id of the CI
class_nameNoCMDB class namecmdb_ci
display_valueNo'false' (default) returns stored values; 'true' returns labels in place of sys_ids and choice values; 'all' returns {display_value, value} per field, which keeps the sys_id beside the name. query= still filters on stored values, not labels. With 'true' or 'all', dates come back in this identity's time zone and formatfalse

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.2
    • addedInput schema / properties / display_value
      Added value: +{
      +  "default": "false",
      +  "description": "'false' (default) returns stored values; 'true' returns labels in place of sys_ids and choice values; 'all' returns {display_value, value} per field, which keeps the sys_id beside the name. query= still filters on stored values, not labels. With 'true' or 'all', dates come back in this identity's time zone and format",
      +  "enum": [
      +    "false",
      +    "true",
      +    "all"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.7.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. First observedv0.5.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds no further behavioral context such as what happens when the sys_id is invalid, what fields are returned, or how class_name affects lookup. Given the annotated safe-read profile, this is adequate but not enriched.

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?

A single, front-loaded sentence that states the operation and lookup key with no wasted words. It is appropriately sized for a simple get-by-id tool.

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 simple get-by-identifier operation, the description plus rich schema descriptions and safety annotations are nearly sufficient. The main missing element is guidance on alternatives or failure behavior, but no output schema means return values need not be explained.

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 schema already explains sys_id, class_name, and display_value in detail. The description adds no meaning beyond 'by sys_id', so the baseline score of 3 is appropriate.

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?

The description states a specific verb and resource: get a single CMDB configuration item. It also scopes retrieval by sys_id, which distinguishes it from list_ci. It does not explicitly differentiate itself from get_record or other retrieval siblings, keeping it below a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description only restates the operation and gives no explicit guidance on when to use this tool versus alternatives such as get_record, list_ci, or get_ci_relationships. The word 'single' hints at lookup semantics, but no when-to-use or when-not-to-use context is provided.

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