Skip to main content
Glama

Get change request nextstate

servicenow_get_change_request_nextstate
Read-onlyIdempotent

Retrieve the next state of a change request using its Sys ID. Use it to determine workflow transitions or approval steps in ServiceNow.

Instructions

Retrieve the next state of a specific change request.

:param change_request_sys_id: Sys ID of the change request. :type change_request_sys_id: str or None

:return: Response containing parsed Pydantic model with information about the next state. :rtype: Response

:raises MissingParameterError: If change_request_sys_id is not provided. :raises ParameterError: If invalid parameters or responses are encountered. :raises ParameterError: If JSON deserialization fails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
stateNo
change_typeNo
task_sys_idNo
text_searchNo
model_sys_idNo
sysparm_limitNo
sysparm_queryNo
worker_sys_idNo
api_parametersNo
cmdb_ci_sys_idNo
sysparm_offsetNo
cmdb_ci_sys_idsNo
response_lengthNo
template_sys_idNo
association_typeNo
name_value_pairsNo
change_model_sys_idNo
change_request_sys_idNo
refresh_impacted_servicesNo
change_request_task_sys_idNo
standard_change_template_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.0

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds useful failure behavior (MissingParameterError when the sys id is absent, ParameterError on bad params or JSON deserialization failures). It does not explain what a 'next state' response contains or whether it is computed or fetched.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The one-line purpose is well front-loaded, but the docstring boilerplate (:param/:type/:return/:rtype/:raises) is verbose relative to the small amount of actual information conveyed, and it spends lines on type annotations that a machine-readable schema already implies.

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

Completeness2/5

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

With 22 parameters, no required fields, 0% schema coverage, and no output schema, the definition should carry substantial context. Instead it documents one parameter and gives a vague return description ('parsed Pydantic model with information about the next state'), leaving the agent unable to call it confidently.

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

Parameters2/5

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

Schema description coverage is 0% across 22 parameters, so the schema documents nothing. The description clarifies only change_request_sys_id ('Sys ID of the change request') and covers none of the other 21 parameters (worker_sys_id, cmdb_ci_sys_ids, sysparm_query, api_parameters, etc.), which is far below what a 0%-coverage schema requires.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (Retrieve) and resource (the next state of a change request), which is clear enough to distinguish it from sibling reads like servicenow_get_change_request. However, 'next state' is left undefined — no state machine or transition context is given, so the agent cannot fully grasp what it retrieves.

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?

There is no when-to-use guidance, no conditions selecting this over servicenow_get_change_request, servicenow_update_change_request, or the approval/conflict siblings, and no prerequisites for obtaining a valid sys_id. The docstring covers only the mechanics of the call, not when it should be made.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools