Skip to main content
Glama

analyze_performance

Analyze ServiceNow instance performance by identifying slow scripts, auditing scheduled jobs, suggesting database indexes, clustering error patterns, or auditing business rules for any table.

Instructions

Analyse ServiceNow instance performance. Supported modes:

slow_scripts — Find slow Business Rules and scripts from syslog (last N minutes) scheduled_jobs — Audit scheduled job durations suggest_indexes — Suggest DB indexes for a table based on BR query patterns error_patterns — Cluster recent system log errors by pattern audit_business_rules — Full BR performance audit for a table (no conditions, sync REST, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
tableNoTable name (required for suggest_indexes and audit_business_rules)
minutes_backNo
threshold_msNoSlow script threshold in ms
hoursNoHours back for error_patterns
limitNo
Behavior3/5

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

With no annotations, the description carries full transparency burden. It explains each mode's action but omits behavioral traits such as read-only status, required permissions, side effects, error handling, or parameter dependencies (e.g., table required for suggest_indexes). The absence of output schema also obscures return values.

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, front-loaded with a one-line summary, and structured as a bullet list. Every sentence adds value without repetition. The format is easily scannable for an AI agent.

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

Completeness3/5

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

Despite covering the main purpose and modes, the description lacks details on mode-specific parameter requirements, output format, and result interpretation. For a tool with 6 parameters and 5 modes, this leaves gaps in completeness, especially without an output schema.

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 description adds significant meaning to the mode parameter by detailing each option. For other parameters (table, minutes_back, threshold_ms, hours, limit), the description implicitly relates them to specific modes but does not provide full semantics. Given 50% schema coverage, the description compensates moderately.

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 explicitly states the tool analyzes ServiceNow instance performance and lists five distinct modes with clear, specific explanations (e.g., 'Find slow Business Rules and scripts from syslog (last N minutes)'). This distinguishes it from sibling tools like health_check_instance or get_audit_stats, which have different foci.

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 does not provide guidance on when to use this tool versus alternatives. It lacks explicit scenarios, prerequisites, or comparisons to other tools like analyze_dependencies or health_check_instance. Users must infer usage from the mode descriptions.

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/pinnintisagarSB/ServiceNow-Dev-MCP'

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