Skip to main content
Glama

Cloud Login (start device-code pairing)

memory-login

Start a device-code login against a przm Cloud server and get the URL and user code a human must visit and enter in a browser to approve access.

Instructions

Start a device-code login against a przm Cloud server (the same flow as the przm-memory login CLI command). Returns the URL and user code the human must visit + enter in a browser. AFTER showing those to the user, call memory-login-resume with the returned deviceCode to poll for approval — it may need to be called more than once if the user is slow. On approval the credentials file at ~/.pyre/credentials.json (or $PYRE_CREDENTIALS_FILE) is written and przm Memory's cloud storage adapter starts using it on next server start.

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>"
    },
    "name": "memory-login"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoFriendly device label to attach to the issued credential. Defaults to this machine's hostname.
serverUrlYesprzm Cloud base URL (e.g. https://przm.sh). No trailing slash needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the side effect (credentials written to `~/.pyre/credentials.json` or $PYRE_CREDENTIALS_FILE), that the adapter only picks it up on next server start, and that resume polling may need repetition. It omits failure/timeout behavior and any auth or rate-limit constraints on the cloud endpoint.

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?

Front-loads purpose, then the user-facing step, then the resume hand-off, then the side effect — a logical order with no filler sentences. It is a single dense paragraph, and the embedded file-path and environment-variable details make it slightly heavy to scan, but nothing is redundant.

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?

For a two-parameter tool with no output schema and no annotations, the description covers what it does, what it returns (URL, user code, `deviceCode`), the required follow-up call, and the durable side effect. An agent has everything needed to drive the pairing flow end to end.

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%, so `serverUrl` and `label` are already fully documented in the input schema. The description adds no further meaning about either parameter — its mention of `deviceCode` refers to a return value not present in the input schema. Baseline 3 applies.

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 ('Start a device-code login against a przm Cloud server') and anchors it to the equivalent CLI command. It also makes the hand-off to `memory-login-resume` explicit, so an agent can distinguish this initiation step from the polling step without opening either 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 clear sequencing instructions: show the URL and user code to the human first, then call `memory-login-resume` with the returned `deviceCode`, possibly repeatedly. It does not address the case where a session already exists (e.g., checking `memory-login-status` first) or what to do if the user never approves, but the primary when-to-use path is unambiguous.

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