Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Query Update Records

query_update_records
DestructiveIdempotent

Update all ServiceNow records matching an encoded query, with a dry-run mode to preview match count before committing changes.

Instructions

Find records matching an encoded query and update them all with the specified data. Supports a dry-run mode: set confirm=false (the default) to see how many records would be affected WITHOUT making changes, then set confirm=true to execute.

IMPORTANT: When confirm=true, this modifies records on the ServiceNow instance. Always run a dry-run first to verify the match count before committing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesField values to set on all matching records (e.g., {"priority": "3", "state": "2"}).
limitNoMaximum number of records to update. If omitted, updates all matches.
queryYesAn encoded query string to find records to update. Examples: "active=true^priority=5", "state=1^assignment_group=NULL".
tableYesThe ServiceNow table to update records on (e.g., "incident", "sys_user").
confirmNoWhen false (default), performs a dry-run that returns the match count without making changes. Set to true to actually execute the updates.
instanceNoThe ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable.
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description adds critical behavioral context: the dry-run mode, confirm=false default behavior, and the warning that confirm=true modifies records. This goes beyond structured annotations by disclosing the safety mechanism and the irreversible nature of the operation.

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?

Two tight paragraphs, no wasted words. The main action is stated first, followed by the critical safety information. The important warning is bolded for emphasis, making it effective and front-loaded.

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

Completeness4/5

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

For a destructive tool with no output schema, the description covers the essential workflow: dry-run first, then execute. It hints at the return value (match count) and warns about modifications. It omits details like limit behavior or instance fallback, but those are fully documented in the schema, so the description is sufficiently complete.

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 adds value by explaining the confirm parameter's role in dry-run vs. execution, which is not fully captured by the schema's field description. It also clarifies the 'update them all' semantics for limit, though not in detail.

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 opens with 'Find records matching an encoded query and update them all with the specified data,' which clearly states the verb (update), resource (records matching a query), and scope (all matches). It also distinguishes itself from siblings like query_table (read-only) and query_delete_records (delete) by focusing on updating.

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 provides explicit guidance on when to use the tool: 'Always run a dry-run first' and explains the confirm flag's role in controlling execution. It does not explicitly name alternatives or exclusions, but the dry-run-first instruction strongly implies the safe usage pattern for this mutation tool.

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/sonisoft-cnanda/now-sdk-ext-mcp'

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