Skip to main content
Glama
ketiil

ServiceNow CMDB MCP Server

by ketiil

find_duplicate_cis

Read-onlyIdempotent

Identify duplicate CIs in ServiceNow CMDB by grouping records that share the same field value, such as name or serial number, to detect duplicates created by multiple sources.

Instructions

Find CIs that share the same value for a given field within a class.

Identifies potential duplicates by grouping CIs on a field (typically name or serial_number) and returning groups with more than one record. Useful for finding CIs that may have been created by multiple discovery sources or manual entry.

Examples: find_duplicate_cis(ci_class="cmdb_ci_server", match_field="name") find_duplicate_cis(ci_class="cmdb_ci_server", match_field="serial_number") find_duplicate_cis(ci_class="cmdb_ci_server", match_field="ip_address", name_filter="prod")

Args: ci_class: CMDB table to search (e.g. cmdb_ci_server). Defaults to cmdb_ci. match_field: Field to match duplicates on. Defaults to "name". Common choices: "name", "serial_number", "asset_tag", "ip_address". name_filter: Optional STARTSWITH filter on the name field to narrow scope. limit: Maximum duplicate groups to return (1-1000, default 25). offset: Pagination offset.

Returns: JSON object with "ci_class", "match_field", "count", "total_count", "has_more", "next_offset", and "duplicate_groups" (list of groups, each with the shared value and matching CIs).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ci_classNocmdb_ci
match_fieldNoname
name_filterNo
limitNo
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds value by explaining the grouping logic ('grouping CIs on a field and returning groups with more than one record') and pagination behavior (limit, offset, has_more, next_offset). This goes beyond the annotations.

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 well-structured: a one-line summary, a paragraph explaining the logic, three examples, a bullet-style args section, and a returns section. Every sentence adds value, and it is front-loaded with the purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 5 parameters (none required) and an output schema, the description explains the return structure ('duplicate_groups' list) and pagination fields. No critical gaps remain for an agent to understand input/output.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description carries full burden. It explains each parameter: ci_class (defaults to cmdb_ci), match_field (lists common choices like 'name', 'serial_number'), name_filter (STARTSWITH filter), limit (range 1-1000, default 25), offset. Examples demonstrate usage.

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 starts with a clear verb+resource: 'Find CIs that share the same value for a given field within a class.' It specifies the grouping logic and provides examples that differentiate it from siblings like 'explain_duplicate' (which explains a specific duplicate rather than finding all).

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 it is 'useful for finding CIs that may have been created by multiple discovery sources or manual entry,' giving context for use. However, it does not explicitly say when not to use it or compare with alternatives like 'explain_duplicate' or 'search_cis,' leaving room for misinterpretation.

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/ketiil/mcp-cmdb'

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