Skip to main content
Glama

alibaba_complete_authorization

Exchange the OAuth authorization code from the callback for an access token and store it, enabling authenticated Alibaba.com seller actions.

Instructions

Exchange an OAuth code (from the callback) for an access token and store it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes

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

A3.7/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, so the mutation/network profile is covered. The description adds real value with 'store it', disclosing a persistent side effect, but says nothing about code expiry, failure modes, or what happens to an existing stored token.

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?

One sentence, front-loaded with the core action and its key side effect. Nothing extraneous.

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 not be explained, and annotations cover the safety profile. The description adequately frames the flow (callback code in, stored token out), though it could name the alternative sibling to round out the picture.

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 single parameter has no schema description, so the description carries the burden. It compensates by explaining that `code` comes from the callback, giving the agent the origin and expected value of the parameter, though it omits format details.

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?

States a specific verb and resource: exchange an OAuth code for an access token and store it. It is clear and action-specific, but does not differentiate itself from the close sibling alibaba_complete_authorization_from_url, which an agent would need to choose between.

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 phrase 'from the callback' implies the usage context (after the OAuth redirect returns a code), which is useful implied guidance. However it never states when to prefer this over alibaba_complete_authorization_from_url or what prerequisites exist, leaving the alternative-route decision to inference.

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