Skip to main content
Glama
BowTiedSwan

grok-oauth-mcp

by BowTiedSwan

auth_login

Initiates xAI OAuth PKCE login to authenticate and obtain tokens. Optionally waits for the callback to capture and store tokens.

Instructions

Start xAI web OAuth PKCE login using the Hermes Agent client. Use wait=true to capture the localhost callback and store tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNoWait for http://127.0.0.1:56121/callback and exchange the authorization code.
timeout_msNoCallback wait timeout in milliseconds. Defaults to 120000.
Behavior3/5

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

No annotations provided, so the description must fully disclose behavior. It mentions capturing callback and storing tokens but omits details like potential user interaction, browser opening, or side effects (e.g., invalidating existing sessions). The timeout parameter hints at waiting, but the description lacks comprehensive behavioral disclosure.

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?

Two concise sentences with front-loaded purpose. Every sentence adds value without redundancy. No unnecessary information.

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 explains the tool's action but does not mention return values or output. Given no output schema and no annotations, the description should cover what the agent can expect after invocation (e.g., tokens or status). This gap reduces completeness.

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 100% with both parameters described. The description adds context for 'wait' (capture callback) and 'timeout_ms' (callback wait timeout) but does not significantly extend beyond the schema. Baseline 3 is appropriate.

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 the verb ('Start'), the resource ('xAI web OAuth PKCE login'), and specifies the client ('Hermes Agent client'). It distinguishes itself from sibling tools like auth_logout and auth_status by focusing on login initiation.

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 advises 'Use wait=true to capture the localhost callback and store tokens,' providing clear usage context. However, it does not explicitly mention when not to use this tool or provide alternatives beyond the sibling context.

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/BowTiedSwan/grok-oauth-mcp'

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