Skip to main content
Glama
ServiceNow_Developer_Panel

ServiceNow_Developer_Panel

login_oauth

Idempotent

Logs in to a ServiceNow instance with OAuth or checks whether the stored login is still valid; use it when a request reports expired authentication, then retry the request.

Instructions

Log the user in to an instance whose MCP authentication method is OAuth login, or check that the stored login is still valid. When a new login is needed, the ServiceNow Developer Panel opens the login page of the instance in the user's browser and waits up to a minute for the user to allow the access; when the answer is still pending, call it again to keep waiting. Call it when a request tool reports that the login must be renewed, then retry the request. The tokens stay in the panel and are never returned.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "instance": "<instance>"
    },
    "name": "login_oauth"
  }
}

Input Schema

NameRequiredDescriptionDefault
instanceYesName of a configured instance, as returned by list_instances.

Output Schema

NameRequiredDescriptionDefault
userYes
messageYes
instanceYes
logged_inYes
authentication_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag openWorldHint and non-read-only semantics; the description adds what an agent actually needs — that a browser page is opened for the user, that the wait is bounded at roughly a minute, that a pending answer means call again, and that tokens never leave the panel. Those interactive and timeout traits are not derivable from the annotations.

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?

Four dense sentences, front-loaded with the purpose, then the interaction model, then the trigger condition. Every sentence carries information, though the opening relative clause about the MCP authentication method is slightly heavy for the space it occupies.

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?

Even though an output schema exists and return values need not be spelled out, the description still clarifies that tokens are not returned, and it covers the timeout and retry behaviors that dominate this tool's usage. Nothing material is missing for a one-parameter interactive auth tool.

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?

There is a single parameter with 100% schema coverage, and the schema already documents it as an instance name from list_instances. The description adds nothing about instance naming or what happens when an unknown name is passed, so the baseline of 3 applies.

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 names a specific action and resource — logging a user in to an instance configured for OAuth MCP authentication — and adds the secondary mode (validating an existing stored login). No sibling tool covers authentication, so an agent can route this correctly without opening the schema.

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

Usage Guidelines5/5

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

It gives an explicit trigger ('when a request tool reports that the login must be renewed'), the follow-up action ('then retry the request'), and re-invocation semantics when the browser answer is still pending. That is a complete when-and-how loop rather than a vague hint.

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