Skip to main content
Glama

alibaba_complete_authorization_from_url

Extracts the OAuth code from the full redirected Alibaba callback URL and exchanges it for an access token, completing seller authorization.

Instructions

Complete authorization from the full callback URL the seller landed on.

Handy when the callback is a page like https://www.alibaba.com — paste the whole redirected address (containing ?code=...) and this extracts the code and exchanges it for a token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
redirected_urlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
errorNo
error_typeNo
expires_atNo
account_keyNo
has_refresh_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and idempotentHint=false, covering the safety/network profile. The description adds that it performs a code-to-token exchange, which is useful behavioral context, but says nothing about prerequisite steps (e.g. needing alibaba_get_authorize_url first) or failure handling.

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 short sentences, front-loaded with the core action before the usage hint. Efficient, though the URL example is slightly verbose relative to the single parameter it illustrates.

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?

An output schema exists, so return values need no explanation, and the single parameter is explained. What remains unstated is the surrounding OAuth flow context (e.g. that an authorize URL must be generated first), which would help for a multi-step auth tool.

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 0% and the schema gives only a bare string type, so the description carries the full burden. It does this well by explaining the parameter must be the whole redirected address containing `?code=...`, which clarifies format and intent beyond the empty schema.

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?

States a specific verb+resource (complete authorization) and explains the mechanism: extracts the code from the redirected URL and exchanges it for a token. This distinguishes it clearly from the sibling alibaba_complete_authorization, which takes the code directly, and an agent can select between them without opening either 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?

"Handy when the callback is a page like https://www.alibaba.com" gives a concrete trigger condition for choosing this tool. It does not explicitly name the alternative (alibaba_complete_authorization) or state when NOT to use it, so it stops short of full routing guidance.

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