Skip to main content
Glama

get_token_info

Retrieve current API token details including merchant, scopes, creation and expiration dates. Use to verify token permissions and troubleshoot API access.

Instructions

取得目前 API Token 的資訊與授權範圍。

【用途】 查詢此 API Token 的詳細資訊,包含所屬商家、 授權的 scope(權限範圍)以及有效期限等。 適合排查 API 存取問題、確認 token 是否擁有 所需的操作權限。

【呼叫的 Shopline API】

  • GET /v1/token/info

【回傳結構】 dict 含 token_info,包含 merchant_id, scopes[], expires_at, created_at 等欄位。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries full burden. It states the HTTP method (GET), the specific endpoint, and the return structure with fields like merchant_id, scopes, expires_at. It implies a read-only operation without side effects, which is appropriate. Could be improved by explicitly stating there are no modifications or rate limits.

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 well-structured with sections for purpose, usage, API call, and return. Each sentence adds value, though it could be slightly more concise. The use of line breaks and Chinese formatting is clear but not minimal.

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

Completeness5/5

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

Given the absence of output schema and annotations, the description provides a complete picture: what the tool does, when to use it, the exact API endpoint, and the structure of the return value. The agent has sufficient information to invoke the tool correctly.

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?

The input schema has zero parameters (100% coverage), so the description does not need to add parameter semantics. It correctly indicates no parameters are needed and instead focuses on the return value, which adds value beyond the 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?

The description explicitly states the tool retrieves current API token info and authorization scope, including merchant, scopes, and expiry. This is a specific verb-resource pair that clearly distinguishes it from sibling tools which focus on products, orders, customers, etc.

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 includes a dedicated '用途' section explaining it is suitable for troubleshooting API access issues and confirming token permissions. While it does not explicitly mention when not to use or name alternatives, the context is clear given the absence of other token-related tools among siblings.

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/asgard-ai-platform/mcp-shopline'

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