ServiceNow MCP exhibits moderate gaps in definition quality. While all 12 tools have basic descriptions and input schemas are present, several critical issues undermine production readiness. Descriptions are consistently brief (30-100 chars) and lack actionable guidance for LLM selection. Parameter schemas are incomplete, many critical parameters lack type information or detailed constraints. Error handling descriptions are absent from all tools. Output schemas are not documented. The server lacks tool annotations (readOnlyHint, destructiveHint) despite having clear READ vs WRITE risk profiles. Several tools accept generic 'object' types for complex inputs without field documentation, forcing LLMs to guess valid structures.
Missing output schema documentation for all 12 tools. LLMs cannot plan downstream operations or extract required fields without knowing response structure.
Generic 'object' parameter types without field documentation (e.g., 'additional_fields' in create_incident, 'fields' in update_incident). LLMs cannot determine valid nested structures.
Add output schema documentation for all 12 tools. Include field names, types, and descriptions. Example for get_incident: {sys_id: string, short_description: string, description: string, status: string, created_on: ISO8601, assigned_to: {sys_id, name}, ...}.
Replace generic 'object' types with fully specified schemas. For 'additional_fields' in create_incident, document which ServiceNow fields are valid (e.g., 'priority', 'category', 'urgency' with allowed values). Use oneOf or patternProperties if validation logic is complex.
Add tool annotations in the MCP registration. Mark create_incident, update_incident, close_incident, and approval tools with destructiveHint=true. Mark get_* tools with readOnlyHint=true. Mark approve/reject tools with idempotentHint=false (approval state is irreversible).
Extend descriptions to 80-150 chars and include selection context. E.g., 'Approve a system approval record (sysapproval_approver). Use this for standard approval workflows. For custom approval tables, use approve_record_generic instead.' This helps LLMs avoid tool confusion.
Add dry_run parameter to create_incident, update_incident, and close_incident to allow agents to validate changes before execution, matching the pattern established in approval and scoped app tools.
Document error recovery in every tool description. E.g., 'If the incident is not found (HTTP 404), check the sys_id is correct or use search_incidents to find the right ID. If the update fails due to validation (HTTP 400), the response will list invalid fields.'
Descriptions too brief (30-50 chars) and lack actionable selection guidance. E.g., 'Approve a system approval record' does not explain when to use approve_sysapproval vs approve_record_generic, or what constitutes a valid approval_sys_id.
Confirmation/dry-run pattern inconsistently applied. 'approve_sysapproval' and scoped_app tools support dry_run, but destructive operations like 'close_incident' and 'update_incident' do not.
No error recovery guidance in any tool description. When operations fail (e.g., invalid table name, approval already processed), LLMs receive no guidance on retryability or alternative actions.
Tool names 'approve_record_generic' and 'reject_record_generic' are generic and lack specificity. Unclear when to use vs table-specific approve_sysapproval. Naming does not distinguish semantic purpose.
Parameter constraints not documented in descriptions. E.g., scope in create_scoped_application must match 'x_[a-z0-9_]+' pattern, but description only mentions 'must start with x_' without format constraints. resolution_code default is hardcoded; unclear if custom codes are allowed.
Missing natural-language identifier support. Tools require 'sys_id' (opaque system IDs) but do not document lookup paths for users operating with names (incident short_description, user names, table names). Agents must make extra discovery calls.
Refactor approve_record_generic and reject_record_generic: rename to approve_custom_record and reject_custom_record, and add a description explaining when to use vs. table-specific approve_sysapproval. Or merge all approval operations into a single approve_record tool with a table parameter.
Document parameter constraints in descriptions. For scope in create_scoped_application, state: 'Application scope (required, format: x_[a-z0-9_]{1,20}, e.g., x_my_app). Must start with x_ and contain only lowercase letters, numbers, underscores.' For resolution_code, list valid codes or note that custom codes are accepted.
Add lookup helper text for required 'sys_id' parameters. E.g., 'If you only have the incident number (INC0123456), use search_incidents(incident_number='INC0123456') first to get the sys_id.' This guides agents toward correct multi-step patterns.
Validate parameter types early in tool handlers and return structured error responses. When 'approval_sys_id' is invalid or already processed, return: {error: 'approval_already_processed', sys_id: ..., current_state: 'approved', message: 'This approval has already been actioned. Approvals cannot be re-approved.'} instead of HTTP 400 with a stack trace.
Document pagination and limits. If get_pending_approvals returns 100 results by default, note that results are limited and use offset/limit parameters to retrieve additional approvals. Include a 'total_count' field in responses so agents know if more results exist.
Add batch variants or multi-record support for tools that agents call in loops. E.g., approve_multiple_records(records: [{table, sys_id, comments?}]) to avoid N sequential API calls.
Ensure all response IDs/references chain to downstream tools. If create_incident returns sys_id, verify update_incident and close_incident accept sys_id directly (they do). If create_scoped_application returns app_sys_id, ensure add_application_dependency and create_application_property accept app_sys_id (they do). Document these chains in descriptions.