Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Get CMDB Relationships

get_cmdb_relationships

Retrieve direct relationships of a CMDB Configuration Item for impact analysis and dependency mapping. Specify CI sys_id and optional direction or relationship type.

Instructions

Get direct relationships of a CMDB Configuration Item (CI). Returns upstream, downstream, or both relationship directions. Use this for impact analysis, dependency mapping, and understanding CI topology.

Provide the CI sys_id (from cmdb_ci or any CI class table). Optionally filter by relationship type (e.g., 'Depends on::Used by', 'Contains::Contained by').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceNoThe ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable.
ci_sys_idYesThe sys_id of the Configuration Item to get relationships for.
directionNoRelationship direction: "upstream" (parents/dependencies), "downstream" (children/dependents), or "both". Default is "both".both
relation_typeNoFilter by relationship type name (e.g., "Depends on::Used by", "Contains::Contained by"). If omitted, returns all relationship types.
limitNoMaximum number of relationships to return. Default is 100.
Behavior3/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It notes the read-only nature and filtering options but lacks details on error handling, pagination behavior for the limit parameter, or what happens when a CI sys_id is invalid. This is adequate but leaves gaps.

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?

The description is concise and well-structured, with two brief paragraphs. The first paragraph states purpose and use cases, the second provides param guidance. No extraneous content.

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?

Given no output schema and moderate complexity (5 params), the description adequately covers use, required param, and optional filters. It partially explains the output (returns relationships) but doesn't detail pagination or error responses. Nearly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% parameter description coverage. The description adds value by explaining the source of ci_sys_id (from cmdb_ci) and providing examples for relation_type. This enhances understanding beyond the schema definitions.

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?

The description clearly states the tool retrieves direct relationships of a CMDB CI, specifying directional options (upstream, downstream, both). It distinguishes from sibling tools like 'traverse_cmdb_graph' by focusing on direct relationships, and mentions specific use cases (impact analysis, dependency mapping).

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

Usage Guidelines4/5

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

The description explicitly indicates when to use the tool (impact analysis, dependency mapping) and provides the required parameter (ci_sys_id) along with optional filters. It does not include explicit when-not-to-use guidance or mention alternatives, but the context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sonisoft-cnanda/now-sdk-ext-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server