Skip to main content
Glama
ketiil

ServiceNow CMDB MCP Server

by ketiil

get_client_scripts

Read-onlyIdempotent

Retrieve client scripts (onChange, onLoad, onSubmit, onCellEdit) from a specified CMDB table. Filter by active status, optionally include redacted script bodies.

Instructions

Get client scripts configured on a CMDB table.

Returns UI-side scripts (onChange, onLoad, onSubmit, onCellEdit) for the specified table. Script bodies are redacted for credentials.

Args: table: The CMDB table to inspect (e.g. cmdb_ci_server). active_only: If True, return only active scripts. Defaults to True. include_scripts: If True, include full (redacted) script bodies. Defaults to False for token efficiency — set True when you need to review logic. limit: Maximum scripts to return (1-1000, default 25). offset: Pagination offset.

Returns: JSON object with "table", "count", "total_count", "has_more", "next_offset", and "client_scripts" list containing name, type, field_name, and optionally the redacted script body.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes
active_onlyNo
include_scriptsNo
limitNo
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already indicate read-only, non-destructive, idempotent. The description adds that script bodies are redacted for security and explains pagination behavior (has_more, next_offset), providing valuable context beyond 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 with clear sections for description, args, and returns. Every sentence adds essential info; no fluff. Front-loaded with 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 the tool's moderate complexity and presence of an output schema, the description explains the return structure (table, count, total_count, has_more, next_offset, client_scripts list with fields) comprehensively, leaving no gaps.

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?

Schema description coverage is 0%, but the description fully compensates by explaining each parameter: table (example given), active_only, include_scripts (with token-efficiency rationale), limit (range), and offset. No ambiguity remains.

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 it retrieves client scripts (onChange, onLoad, onSubmit, onCellEdit) for a specified CMDB table, distinguishing it from sibling tools like get_business_rules or get_script_includes.

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 explains parameter usage (e.g., include_scripts only when needed) and defaults, but does not explicitly contrast with alternatives for server-side scripts, which would strengthen guidance.

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