Skip to main content
Glama

Cloud Login (resume / poll device-code)

memory-login-resume

Poll a device-code pairing started by memory-login to confirm approval; returns approved, pending, denied, expired, or error, and writes the credentials file on approval.

Instructions

Poll a device-code pairing started by memory-login. Polls for ~45s, then returns one of: approved, pending, denied, expired, error. If "pending" is returned and expiresAt has not passed, call this tool again with the same arguments to keep waiting. On "approved" the credentials file is written and the response includes the storage api_url assigned by the server.

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": {
      "serverUrl": "<serverUrl>",
      "deviceCode": "<deviceCode>",
      "intervalSeconds": "<intervalSeconds>",
      "expiresAt": "<expiresAt>"
    },
    "name": "memory-login-resume"
  }
}

Input Schema

NameRequiredDescriptionDefault
expiresAtYesEpoch ms after which the device code is expired (returned by memory-login).
serverUrlYesprzm Cloud base URL — must match the one passed to memory-login.
deviceCodeYesdevice_code returned by memory-login.
intervalSecondsYesPolling interval suggested by the server (returned by memory-login).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two important traits: the call blocks for about 45 seconds, and on approval it writes a credentials file. It does not cover whether the call requires prior auth, what state is left behind on denial/expiration, or whether an approved file can be overwritten by a subsequent poll. Those gaps keep it at a 3 rather than higher.

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?

Four short sentences, no filler. The identity and dependency come first, then the blocking duration, then the status enumeration, then the loop rule and the success side effect — well front-loaded.

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?

There is no output schema, so the description must explain return values; it enumerates the five statuses and mentions the `api_url` included on approval, which is adequate. It stops short of describing the full approved payload or the failure payloads, a minor gap for a polling tool.

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 adds meaning by stating that all four arguments come from the preceding `memory-login` response and must be reused verbatim on re-poll, and by tying `expiresAt` to the decision to keep waiting. That is modest but real value beyond the schema text.

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 ("Poll a device-code pairing") and explicitly ties it to the sibling that starts that pairing, `memory-login`. An agent can tell it apart from `memory-login` (initiate) and `memory-login-status` without opening any schema.

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 a clear call-again rule for the "pending" case, gated on `expiresAt` not having passed, and explains what happens on "approved". It does not say what to do on "denied", "expired", or "error" (presumably stop and restart `memory-login`), which is the one remaining usage gap.

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