Skip to main content
Glama

Complete Authentication

account_complete_auth

Complete device flow authentication after the user verifies the device code, returning account information or a pending status.

Instructions

✏️ Complete device flow authentication (requires user confirmation recommended)

Completes the authentication process after the user has entered the device code at the verification URL.

Args: flow_cache: The flow data returned from account_authenticate (the _flow_cache field)

Returns: Account information if authentication was successful, or pending status if the user hasn't completed authentication yet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flow_cacheYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description adds context beyond annotations: it describes return values (account info or pending status) and the pending nature if user hasn't completed. Given readOnlyHint=false and destructiveHint=false, the description appropriately indicates a mutating but non-destructive operation.

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?

The description is concise with two clear sentences, an emoji for visibility, and labeled Args/Returns sections. No unnecessary information.

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?

Given one simple parameter and an output schema, the description fully covers the tool's purpose, prerequisite, and return possibilities. Complete for this complexity.

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?

With 0% schema coverage, the description provides crucial meaning: it explains 'flow_cache' is the flow data returned from account_authenticate (the _flow_cache field). This clarifies the parameter's origin and type.

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 clearly states it completes device flow authentication, specifying the verb 'Completes' and the resource 'authentication process'. It distinguishes itself from sibling account_authenticate by referencing the prior step and the flow_cache argument.

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?

The description explains that it is used after the user enters the device code at the verification URL, and that flow_cache comes from account_authenticate. It implies a prerequisite but does not explicitly state when not to use or provide alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/robin-collins/m365-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server