Skip to main content
Glama

create_vulnerable_item

Create a Vulnerable Item (sn_vul_vulnerable_item) with the vulnerability reference intact. A before business rule clears the vulnerability reference on REST inserts, which silently disables the "Link to Remediation Tasks" automation…

Instructions

Create a Vulnerable Item (sn_vul_vulnerable_item) with the vulnerability reference intact. A before business rule clears the vulnerability reference on REST inserts, which silently disables the "Link to Remediation Tasks" automation; this tool re-applies the reference via PATCH after insert and verifies it stuck. Requires both vulnerability and cmdb_ci so the remediation-task rule engine can group the item. ServiceNow regenerates short_description as " detected on " on insert, so a value passed here cannot be used to tag items or to select them later (e.g. in a remediation task rule condition) — use source instead; the result reports overwritten fields. [Write — requires WRITE_ENABLED=true]

Input Schema

NameRequiredDescriptionDefault
stateNoState filter. Single value or comma-separated list. 1=Open, 2=Under Investigation, 10=Awaiting Implementation, 11=In Review, 12=Deferred, 101=Resolved, 3=Closed
sourceNoDetection source label (e.g. scanner name)
cmdb_ciYes32-char sys_id of the affected CI
assigned_toNoAssignee sys_id
descriptionNoDetailed description
vulnerabilityYes32-char sys_id of the vulnerability entry (sn_vul_entry, e.g. an NVD entry)
assignment_groupNoAssignment group sys_id
short_descriptionNoUsually overwritten: the "Update short description" business rule sets it to "<vulnerability> detected on <CI>" on insert. Use `source` to tag test or imported items.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.15.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes far beyond the annotations: it discloses the before-business-rule that silently clears the reference, the internal PATCH-and-verify workaround, that the result reports overwritten fields, and that WRITE_ENABLED=true is required. This is exactly the side-effect and prerequisite context annotations cannot convey.

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

Conciseness4/5

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

Front-loads the core behavior and the reason for the tool, then layers caveats and the write prerequisite in bold. Sentences are long and dense with parenthetical detail, but every clause carries operational information an agent needs.

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?

For a write tool with no output schema, it covers the crucial gaps: preconditions (WRITE_ENABLED), required fields and their rationale, silent field overwrites, and that the response reports overwritten fields. An agent has everything needed to call it correctly and interpret the outcome.

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?

Schema coverage is 100%, so the baseline is 3; the description earns extra credit by explaining WHY `vulnerability` and `cmdb_ci` are both mandatory (the remediation rule engine needs them to group the item) and by steering tagging toward `source`. The short_description caveat largely restates the schema, keeping it below 5.

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?

States a specific verb and resource (create a Vulnerable Item, sn_vul_vulnerable_item) and immediately distinguishes itself from the generic insert path by explaining it preserves the `vulnerability` reference that a business rule strips. An agent can tell exactly what this does and why it exists versus plain record creation.

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 makes clear when this tool is needed (whenever the vulnerability reference must survive insert so the remediation-task automation works) and warns against using short_description for tagging. It doesn't explicitly name sibling alternatives such as add_vi_to_remediation_task or update_vulnerability, so routing is implied rather than spelled out.

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