Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Set Current Application Scope

set_current_scope
Idempotent

Set the current application scope for a ServiceNow session. Validates the app exists and confirms the change, ensuring scripts and queries run in the intended context.

Instructions

Change the active application scope. Validates the app exists, records previous scope, verifies the change. IMPORTANT: This changes the session's application context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceNoThe ServiceNow instance auth alias to connect to. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable.
app_sys_idYesThe sys_id of the application to set as the current scope. Must be a 32-character hexadecimal string (e.g., "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6") or "global" for the Global scope.
Behavior4/5

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

The description adds meaningful behavioral context beyond the annotations: it validates the app exists, records previous scope, verifies the change, and warns that it changes the session's application context. This provides insight into side effects and safety, which is valuable since the tool is a write operation (readOnlyHint=false). No contradiction with annotations.

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 concise and front-loaded: three sentences that state the primary action, key validation steps, and an important warning. Every sentence earns its place, with no redundant or filler content.

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?

Given the low complexity (2 params, no output schema) and the presence of annotations, the description covers the essential aspects: what it does, key behaviors (validation, recording, verification), and the session context side effect. It does not describe the return value or error handling, but 'verifies the change' implies feedback, and the annotations cover safety. This is complete enough for an agent to use correctly in most cases.

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%, fully documenting the 'instance' and 'app_sys_id' parameters. The tool description does not add additional meaning beyond the schema, which is acceptable given the schema already provides comprehensive parameter semantics. Baseline of 3 is appropriate.

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 tool's purpose: 'Change the active application scope.' It uses a specific verb and resource, and adds detail about validation, previous scope recording, and verification. However, it does not explicitly distinguish itself from sibling tools like get_current_scope or list_scoped_apps, though its unique purpose is evident from the name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by stating the action ('Change the active application scope') and warns about the session context change, but it does not provide explicit when-to-use guidance or mention alternatives. The context is clear enough to infer when this tool should be used, but there is no direct comparison to other scope-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/sonisoft-cnanda/now-sdk-ext-mcp'

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