Skip to main content
Glama

Opsphere — DevOps & SRE Intelligence

AWS SSO Device Code Poll

aws_sso_login_device_poll

Poll the device_code status and verify that AWS role credentials are usable. User-scoped sessions are stored encrypted in PostgreSQL; legacy local sessions use the AWS filesystem cache.

Input Schema

NameRequiredDescriptionDefault
context_idNoOptional explicit Connection Hub work context (ctx_*). Omit to use the conversation's active workspace; global Hub tools ignore it.
device_codeYesdevice_code devuelto por aws.sso.login.device.start

Output Schema

NameRequiredDescriptionDefault
okYes
dataYes
contractVersionYes
dataSchemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / data / properties / errorCode
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / retryable
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / properties / status
      Added value: +{
      +  "type": "string"
      +}
  2. Changed18 schema fields changed
    • addedOutput schema / properties / data / properties / deviceCode
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / expiresIn
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / data / properties / flowType
      Added value: +{
      +  "enum": [
      +    "completed",
      +    "device_code",
      +    "oauth_pkce",
      +    "unknown"
      +  ],
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / format
      Removed value: -{
      -  "enum": [
      -    "plain",
      -    "markdown",
      -    "json"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / data / properties / instructions
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / oauthUrl
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / profile
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / ssoRequired
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / properties / success
      Added value: +{
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / data / properties / text
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / data / properties / userCode
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / verificationUri
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / verificationUriComplete
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / workaround
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "text"
      -]New value: +[
      +  "flowType",
      +  "profile"
      +]
    • addedOutput schema / properties / dataSchemaVersion
      Added value: +{
      +  "const": 2,
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "contractVersion",
      -  "ok",
      -  "data"
      -]New value: +[
      +  "contractVersion",
      +  "dataSchemaVersion",
      +  "ok",
      +  "data"
      +]
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The description adds useful context beyond the annotations by explaining that user-scoped sessions are stored encrypted in PostgreSQL while legacy local sessions use the AWS filesystem cache. However, it does not explain why the operation is non-read-only, what side effects polling may have, or whether there is a required polling cadence.

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?

The description is concise and front-loads the primary action in the first sentence. The second sentence adds storage context without excessive length, though it is somewhat tangential to the immediate invocation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema and annotations cover return values and safety signals, and the input schema fully documents the parameters. Still, the description does not route the agent among the several SSO login siblings or explain the expected polling lifecycle, which are meaningful gaps for an authentication 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?

Schema description coverage is 100%, and both parameters are fully documented in the input schema. The description does not add meaning beyond the schema, so the baseline score 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 uses a specific verb and resource: polling the device_code status and verifying that AWS role credentials are usable. It is clear what the tool does, though it does not explicitly differentiate itself from siblings such as aws_sso_login_device_start or aws_sso_login_global_poll.

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 phrase 'Poll the device_code status' implies this is a follow-up step after obtaining a device_code, but the description does not explicitly say when to use it, when not to use it, or how it relates to alternative SSO login tools.

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