Skip to main content
Glama

checkDeviceLoginStatus

checkDeviceLoginStatus: Poll for device login completion. Call this after loginWithDevice() once you have opened the verification URL and signed in. Required: deviceCode (the device_code returned by loginWithDevice). On success returns a sessionKey; pass it as the sessionKey argument on every subsequent authenticated tool call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceCodeYesThe device_code value returned by loginWithDevice.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNo
messageNo
successNo
expiresInNo
tokenTypeNo
sessionKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / deviceCode / description
      Added value: +"The device_code value returned by loginWithDevice."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "expiresIn": {
      +      "type": "integer"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "sessionKey": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    },
      +    "tokenType": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The tool is a polling operation, and the description says 'Poll for device login completion' and notes that success returns a sessionKey. This adds context beyond the annotations, which only state readOnlyHint=false, idempotentHint=false, and destructiveHint=false. It doesn't detail error behavior or what happens before completion, but for a simple poll the disclosure is adequate.

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?

Three sentences, each earning its place: purpose, call sequence, and required input/return handling. The most important information is front-loaded, and there is no filler or repetition.

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 one-parameter tool with a clear position in a flow, the description covers the prerequisite call, input origin, success return, and how to use the result. It doesn't mention failure modes or polling behavior details, but an output schema exists and the sibling list clarifies the flow context, so the omission is minor.

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 coverage is 100%: the parameter deviceCode is already described as 'The device_code value returned by loginWithDevice.' The description repeats this ('the device_code returned by loginWithDevice') and adds 'Required,' but this is also already in the schema's required list. No new semantic information about the parameter is provided beyond the schema.

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 'Poll for device login completion,' which names a specific verb and resource, clearly distinguishing this tool from its siblings like loginWithDevice (which initiates the flow) and getAuthStatus (which checks general auth state). It also states the concrete success outcome ('returns a sessionKey'), leaving no ambiguity about what the tool does.

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 explicitly gives the usage context: 'Call this after loginWithDevice() once you have opened the verification URL and signed in.' It also specifies the prerequisite input (deviceCode returned by loginWithDevice) and the downstream behavior ('pass it as the sessionKey argument on every subsequent authenticated tool call'), making the call sequence unambiguous.

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.