Skip to main content
Glama

device_approve

Approve a pending CLI login as the signed-in user.

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": {
      "userCode": "<userCode>"
    },
    "name": "device_approve"
  }
}

Input Schema

NameRequiredDescriptionDefault
userCodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already establish that this is a non-destructive, non-open-world mutation, so the bar is lower. The description adds that approval is performed under the caller's own identity (no target-user parameter), but it says nothing about what the approval grants, what happens on an invalid or expired code, or whether it is reversible.

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?

A single front-loaded sentence with no filler; the action and acting identity come first. It is efficient, though the brevity is part of what leaves the parameter unexplained.

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?

For a one-parameter action tool with no output schema this is close to adequate, but the agent is left without the origin and validity semantics of userCode and without any outcome behavior. Annotations cover the safety profile, so the remaining gap is moderate rather than severe.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single parameter, and the description never mentions the code at all — not what it represents, where the user obtains it, or that it is the short hyphenated code displayed by the CLI. The JSON schema pattern conveys format but not meaning, so the description leaves the one input unexplained.

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?

"Approve a pending CLI login as the signed-in user" names a specific verb (approve), a specific resource (a pending CLI login), and the acting identity, so an agent can tell this is a device-authorization approval rather than a generic write. It does not reference any sibling, but the action is distinctive enough to stand on its own.

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 word "pending" implies usage — call it when a CLI login is awaiting approval — but the description never states prerequisites (where the userCode comes from, how long it stays valid) or when not to call it. An agent must infer the device-auth flow context.

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