Skip to main content
Glama
fatwang2

x-api-mcp

by fatwang2

complete_authorization

Finish adding an X account by submitting the full callback URL (with code and state) from the browser when the automatic listener is unavailable. Codes expire in ~30 seconds.

Instructions

Fallback when the automatic callback listener is unavailable: finish add_account with the full callback URL from the browser address bar (contains code and state). X codes expire ~30 seconds after approval.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
redirect_urlYesFull callback URL, e.g. http://127.0.0.1:8765/callback?state=...&code=...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare openWorldHint=true, so the description carries the behavioral burden. It adds genuinely useful, non-obvious context: the callback URL must contain code and state, and the X codes expire ~30 seconds after approval, which is a critical timing constraint for the agent. It omits what happens on failure/expiry, so it is not exhaustive.

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?

Two tight sentences with the fallback condition front-loaded, followed by the time-sensitive expiry warning. No filler; each clause carries information, though the phrasing is slightly dense.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter OAuth-completion tool with no output schema, the description covers the trigger, the value's source and contents, and the expiry constraint. It could note expected results or expiry behavior, but nothing essential for invocation is missing.

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?

Schema coverage is 100% and the parameter already has an example, so the schema does the heavy lifting (baseline 3). The description adds meaning by telling the agent where to obtain the value (the browser address bar) and what it must contain (code and state).

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 gives a specific verb+resource (finish/complete the add_account authorization) and explicitly frames itself as the fallback path versus the automatic callback listener. An agent can distinguish this from the sibling add_account and other account tools without opening the schema.

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?

It clearly states the trigger condition: use this when the automatic callback listener is unavailable. The alternative (the automatic path) is implied, but there is no explicit 'do not use this in the normal flow' exclusion, keeping it just short of a full 5.

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