Skip to main content
Glama
YangLiangwei

PersonalizationMCP

by YangLiangwei

complete_reddit_oauth

Exchange a Reddit authorization code for access and refresh tokens to complete OAuth2 authentication.

Instructions

    Complete Reddit OAuth2 authentication (get tokens).
    
    Args:
        client_id: Reddit Client ID
        client_secret: Reddit Client Secret
        authorization_code: Authorization code from Reddit callback
        redirect_uri: Optional redirect URI (should match the one used in setup_reddit_oauth)
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_idYes
redirect_uriNo
client_secretYes
authorization_codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of explaining side effects, but it only says it completes authentication and gets tokens. It does not disclose whether tokens are persisted, whether the authorization code is single-use, what happens on invalid input, or whether calling it multiple times has different effects.

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 short, front-loaded with the core purpose, and the Args list is compact with no filler. The docstring formatting adds a little noise, but every sentence contributes meaning.

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 description conveys the essential OAuth completion inputs: a callback authorization code and a matching redirect URI, with an output schema likely describing the returned tokens. It lacks explicit sequencing relative to setup_reddit_oauth and refresh_reddit_token, and it does not address error conditions or token persistence, which are important for an un-annotated auth mutation.

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 0% because the properties only have titles, so the description's Args list is the primary parameter guidance. It adds useful context by clarifying that authorization_code comes from a Reddit callback and that redirect_uri should match setup_reddit_oauth, but client_id and client_secret are essentially restatements of the property titles.

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 opens with 'Complete Reddit OAuth2 authentication (get tokens)', naming a specific action, resource, and intended outcome. This distinguishes it from siblings like setup_reddit_oauth and refresh_reddit_token, though the exact OAuth step could be stated more explicitly.

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 states that authorization_code comes from a Reddit callback and that redirect_uri should match the one used in setup_reddit_oauth, which implies when this tool should be used. It does not explicitly say when to prefer refresh_reddit_token or exclude alternative flows, so it lacks full when-not guidance.

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