Skip to main content
Glama
vparlapalli490

ServiceNow MCP Server

create_incident

Create new incidents in ServiceNow to report and track IT issues, service requests, or system problems for resolution.

Instructions

Create a new incident in ServiceNow

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
short_descriptionYesShort description of the incident
descriptionNoDetailed description of the incident
caller_idNoUser who reported the incident
categoryNoCategory of the incident
subcategoryNoSubcategory of the incident
priorityNoPriority of the incident
impactNoImpact of the incident
urgencyNoUrgency of the incident
assigned_toNoUser assigned to the incident
assignment_groupNoGroup assigned to the incident

Implementation Reference

  • The handler function that executes the create_incident tool logic, constructing the incident data and making a POST request to the ServiceNow API.
    def create_incident(
        config: ServerConfig,
        auth_manager: AuthManager,
        params: CreateIncidentParams,
    ) -> IncidentResponse:
        """
        Create a new incident in ServiceNow.
    
        Args:
            config: Server configuration.
            auth_manager: Authentication manager.
            params: Parameters for creating the incident.
    
        Returns:
            Response with the created incident details.
        """
        api_url = f"{config.api_url}/table/incident"
    
        # Build request data
        data = {
            "short_description": params.short_description,
        }
    
        if params.description:
            data["description"] = params.description
        if params.caller_id:
            data["caller_id"] = params.caller_id
        if params.category:
            data["category"] = params.category
        if params.subcategory:
            data["subcategory"] = params.subcategory
        if params.priority:
            data["priority"] = params.priority
        if params.impact:
            data["impact"] = params.impact
        if params.urgency:
            data["urgency"] = params.urgency
        if params.assigned_to:
            data["assigned_to"] = params.assigned_to
        if params.assignment_group:
            data["assignment_group"] = params.assignment_group
    
        # Make request
        try:
            response = requests.post(
                api_url,
                json=data,
                headers=auth_manager.get_headers(),
                timeout=config.timeout,
            )
            response.raise_for_status()
    
            result = response.json().get("result", {})
    
            return IncidentResponse(
                success=True,
                message="Incident created successfully",
                incident_id=result.get("sys_id"),
                incident_number=result.get("number"),
            )
    
        except requests.RequestException as e:
            logger.error(f"Failed to create incident: {e}")
            return IncidentResponse(
                success=False,
                message=f"Failed to create incident: {str(e)}",
            )
  • Pydantic BaseModel defining the input schema/parameters for the create_incident tool.
    class CreateIncidentParams(BaseModel):
        """Parameters for creating an incident."""
    
        short_description: str = Field(..., description="Short description of the incident")
        description: Optional[str] = Field(None, description="Detailed description of the incident")
        caller_id: Optional[str] = Field(None, description="User who reported the incident")
        category: Optional[str] = Field(None, description="Category of the incident")
        subcategory: Optional[str] = Field(None, description="Subcategory of the incident")
        priority: Optional[str] = Field(None, description="Priority of the incident")
        impact: Optional[str] = Field(None, description="Impact of the incident")
        urgency: Optional[str] = Field(None, description="Urgency of the incident")
        assigned_to: Optional[str] = Field(None, description="User assigned to the incident")
        assignment_group: Optional[str] = Field(None, description="Group assigned to the incident")
  • Registration of the create_incident tool in the get_tool_definitions dictionary, specifying the handler function alias, input schema, return type hint, description, and serialization method.
    "create_incident": (
        create_incident_tool,
        CreateIncidentParams,
        str,
        "Create a new incident in ServiceNow",
        "str",
    ),
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'Create' implies a write operation, the description doesn't mention permissions required, whether the operation is idempotent, what happens on success/failure, or any rate limits. For a mutation tool with zero annotation coverage, this represents significant gaps in behavioral transparency.

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 a single, efficient sentence that communicates the core purpose without any wasted words. It's appropriately sized and front-loaded, with every word earning its place in conveying the essential information.

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?

For a mutation tool with 10 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain what happens after creation (e.g., returns incident ID), doesn't mention required permissions or constraints, and provides no context about the ServiceNow incident lifecycle. The description fails to compensate for the lack of structured metadata.

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

Parameters3/5

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

The schema description coverage is 100%, with all 10 parameters well-documented in the input schema. The description adds no parameter-specific information beyond what's already in the structured schema. According to scoring rules, when schema_description_coverage is high (>80%), the baseline is 3 even with no param info in the description.

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 clearly states the action ('Create') and resource ('new incident in ServiceNow'), making the tool's purpose immediately understandable. However, it doesn't differentiate this tool from similar sibling tools like 'create_change_request' or 'create_article' beyond the resource type, which prevents a perfect score.

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 provides no guidance on when to use this tool versus alternatives. With sibling tools like 'update_incident', 'resolve_incident', and 'list_incidents' available, there's no indication whether this is for initial incident creation versus modification or when to choose it over other incident-related tools.

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/vparlapalli490/MCP'

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