Skip to main content
Glama
rollecode

Trakt MCP server

by rollecode

finish_authentication

Idempotent

Complete Trakt login by exchanging the approved device code for an access token, finishing the authentication flow started earlier.

Instructions

Exchange an approved device code for a stored token.

Args: device_code: The device_code returned by start_authentication. wait_seconds: How long to keep polling while you approve in the browser. 0 checks once and reports whether approval is still pending, which is the better default for an interactive session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_codeYes
wait_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that the tool polls while the user approves in the browser, that wait_seconds=0 performs a single check and reports whether approval is still pending, and that this is preferable in interactive contexts. This adds meaningful behavioral detail without contradicting the idempotentHint or other annotations.

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 compact and front-loaded with the core purpose, followed by tightly scoped parameter documentation. Every sentence adds value, and the formatting makes the parameter semantics easy to parse.

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 an output schema available, the description covers the call sequence, parameter behavior, default recommendation, and what a zero-wait call reports. Nothing essential for correct invocation is missing.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by explaining device_code as the value returned by start_authentication and precisely defining wait_seconds as the polling duration, with 0 meaning a single status check. This is exactly the guidance the agent needs for both parameters.

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 opens with a specific verb and resource: 'Exchange an approved device code for a stored token.' This clearly identifies the OAuth device-flow completion step and distinguishes it from related operations like start_authentication or get_authentication_status by tying it to the device_code returned by start_authentication.

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 establishes clear sequencing by stating the device_code comes from start_authentication and explains when to use wait_seconds=0 versus longer polling, including a recommendation for interactive sessions. It does not name explicit alternatives or exclusions, but the intended usage context is unambiguous.

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

Deploy Server

Other Tools