Skip to main content
Glama

List device user logins

list_device_user_logins
Read-onlyIdempotent

Get who logged in on the company's devices: the sessions of device users, newest first. Each has the device user (name, auth PIN, SSO or EXTERNAL = authenticated by the customer's own system, and that system's externalUserId), the asset (assetId, serial number, name), loginAt, logoutAt, expiresAt, open, and who reported the login and the logout: DEVICE (the Nomid agent on the device), API (the customer's system, through the Public API) or EXPIRY (the session expired). Use it for "who is using device X", "who used it on a date", "where is user Y logged in". Filter by asset (assetId or serialNumber), by user (deviceUserId or externalUserId), by open, and by when the session started (from, to); every filter is optional. An asset's sessions include those of earlier enrollments of the same hardware. Returns a tool error if no asset with that id or serial number exists in this company.

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": "list_device_user_logins"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOnly sessions that started before this ISO-8601 instant.
fromNoOnly sessions that started at or after this ISO-8601 instant, e.g. 2026-10-01T00:00:00Z.
openNoOnly sessions still open (nobody logged out, not expired). Defaults to false.
limitNoMaximum number of sessions to return, newest first. Defaults to 50, capped at 200.
assetIdNoOnly sessions on this asset - its path name, as search_devices/get_device return it. Not together with serialNumber.
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.
deviceUserIdNoOnly sessions of this device user, by its Nomid id (deviceUser.id in a result).
serialNumberNoOnly sessions on the asset with this serial number. Not together with assetId.
externalUserIdNoOnly sessions of the EXTERNAL device user with this id from the customer's own system.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description adds meaningful behavior beyond that: newest-first ordering, the default 50 / cap 200 limit, the meaning of the DEVICE/API/EXPIRY reporter values, that sessions from earlier enrollments of the same hardware are included, and that a missing asset yields a tool error. It stops short of describing anything about result paging beyond the limit.

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?

Purpose is front-loaded in the first clause, and the filter description follows in a logical order. The long mid-sentence enumeration of every returned field is dense but each item carries information an agent would otherwise have to guess (there is no output schema), so it mostly earns its place.

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?

With 9 optional parameters and no output schema, the definition compensates by describing the result shape, the reporter semantics, ordering, limit behavior, and the error case. An agent has everything needed to select and call it correctly.

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 still adds value by tying externalUserId to EXTERNAL-authenticated users, clarifying that from/to bound when the session started, and noting the assetId-or-serialNumber exclusivity plus the cross-enrollment scope of assetId.

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: 'Get who logged in on the company's devices: the sessions of device users, newest first.' It enumerates the returned fields and enumerates what makes up a session, which clearly separates it from siblings like list_device_apps and list_device_commands without naming them.

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?

Gives concrete example questions ('who is using device X', 'who used it on a date', 'where is user Y logged in') that map directly to the available filters, and notes that every filter is optional. It does not explicitly name a sibling to use instead when you want device inventory or commands, so it falls short of full alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources