Skip to main content
Glama
ServiceNow MCP Server

ServiceNow MCP Server

by jschuller

Get Current User

get_current_user
Read-onlyIdempotent

Get the authenticated user's identity and directly assigned, active roles

Instructions

Get the authenticated user's identity and directly assigned, active roles

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_current_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoExtra sys_user fields to return besides user_name, user_display_name, user_email, user_sys_id and roles

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.1
    • changedInput schema / properties / fields / description
      Previous value: -"Comma-separated fields to return (default: user_name,name,email,roles)"New value: +"Extra sys_user fields to return besides user_name, user_display_name, user_email, user_sys_id and roles"
  2. Changed1 schema field changedv0.7.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. First observedv0.5.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so safety is covered. The description adds a genuinely useful behavioral nuance beyond that: roles returned are only directly assigned and active, preventing an agent from assuming inherited or inactive roles are included.

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?

A single front-loaded sentence with no filler; the scope qualifier is attached directly to the resource being fetched.

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 zero-required-parameter read tool with full annotation coverage and a fully documented schema, the description covers identity plus the role scoping. Return shape is partially implied via the schema's field list, so nothing essential is missing, though error/auth-failure behavior is unstated.

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?

Schema description coverage is 100% and the single 'fields' parameter is fully documented in the schema, including the default returned fields. The description adds no parameter-level detail, so the baseline of 3 applies.

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?

Specific verb and resource (get the authenticated user's identity), plus a precise scope qualifier: only 'directly assigned, active roles'. This distinguishes it from generic record-fetching siblings like get_record, though it does not name any alternative tool by 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?

Usage is implied by the phrase 'authenticated user's identity' — an agent can infer this is for identifying the calling user — but there is no explicit when-to-use, when-not-to-use, or alternative named (e.g., get_record for arbitrary users).

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