Skip to main content
Glama
ketiil

ServiceNow CMDB MCP Server

by ketiil

get_discovery_status

Read-onlyIdempotent

Check recent Discovery scan results. Filter by schedule or state to see success, failure, or progress of scans.

Instructions

Get recent Discovery status records showing scan results.

Queries the discovery_status table for recent discovery runs. Each record represents a single discovery scan attempt against a target, showing whether it succeeded, failed, or is in progress.

Args: schedule_name: Filter by schedule name (STARTSWITH match). Optional. state: Filter by discovery state. Valid values: "Starting", "Active", "Completed", "Cancelled", "Error". Optional. limit: Maximum records to return (1-1000, default 25). offset: Pagination offset.

Returns: JSON object with "count" and "statuses" list containing sys_id, state, source, target IP, CI created/updated info, and timestamps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schedule_nameNo
stateNo
limitNo
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description adds context about querying the discovery_status table and returning records with success/fail/in progress states, which is consistent but adds limited value 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with Args and Returns sections, and each sentence serves a purpose. It is slightly verbose but efficient, with no wasted words.

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 the output schema exists, the description sufficiently explains return fields (count, statuses list with sys_id, state, source, etc.). All parameters are optional, and the tool's purpose is fully covered. No gaps.

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?

Schema description coverage is 0%, but the description's Args section details all four parameters, including schedule_name's STARTSWITH matching, state's valid enum values, limit range (1-1000), and offset for pagination. This provides meaning beyond the schema alone.

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 'Get recent Discovery status records showing scan results', which is a specific verb+resource. It further explains that it queries the discovery_status table for scan results, distinguishing it from sibling tools like get_discovery_errors or list_discovery_schedules.

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 provides parameter descriptions and context (e.g., schedule_name supports STARTSWITH match) but does not explicitly state when to use this tool versus siblings or when not to use it. Usage is implied but not explicitly guided.

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