Skip to main content
Glama
rollecode

Trakt MCP server

by rollecode

create_oauth_device_code

Idempotent

Generate new OAuth device codes to initiate the device authorization flow, allowing users to securely log in and grant Trakt API access.

Instructions

Generate new device codes.

POST /oauth/device/code

Args: body: Request payload. Read the matching GET or the /schema endpoint first to see the fields this resource expects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, and the description's 'Generate' action aligns with a non-read, non-destructive mutation — no contradiction. The description adds the endpoint and the open-world body hint, but with annotations already carrying the safety profile, it contributes modest additional context about the operation's effect.

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?

The description is compact — an action sentence, the endpoint, and a brief args block. The action is front-loaded. The 'POST /oauth/device/code' line is slightly redundant with the tool name but reinforces the resource. Minimal waste overall.

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?

The tool has an output schema (covering return values) and a nested, open-world body. The description provides a pointer to /schema for fields, which helps. But it lacks OAuth flow context — the agent won't know this pairs with create_oauth_device_token or create_oauth_token, nor the sequencing, which matters given the many sibling auth tools.

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 description coverage is 0%, so the description must compensate. It names the single parameter ('body: Request payload') and directs the agent to the /schema endpoint for field definitions, which is reasonable given the open-world (additionalProperties=true) body. However, it does not enumerate any actual body fields or expected structure, leaving the agent to fetch schema elsewhere.

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?

The description states a specific action ('Generate new device codes') and the resource (OAuth device code). This is distinct from sibling tools like create_oauth_device_token, create_oauth_revoke, and create_oauth_token, which the name and verb differentiate. However, it doesn't explicitly call out how it differs from create_oauth_device_token, leaving some ambiguity about the OAuth flow steps.

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 description tells the agent to 'Read the matching GET or the /schema endpoint first to see the fields this resource expects,' which is useful for body construction. But it provides no when-to-use guidance, no flow context (e.g., that device-code generation precedes token exchange), and doesn't mention alternatives. The usage is only implied from the tool name.

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