Skip to main content
Glama

WeChat_get_access_token

Retrieve the WeChat Official Account access token using AppID and AppSecret, enabling API authentication for content management.

Instructions

获取微信公众号Access Token

Metadata:

  • input: AppID, AppSecret

  • output: success, error, access_token, expires_in

参数说明:

  • AppID: 公众号唯一凭证

  • AppSecret: 公众号凭证密钥

  • expires_in: 凭证有效时间(秒),默认7200

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the transparency burden. It discloses output fields (success, error, access_token, expires_in) and the default expires_in value (7200 seconds), but does not mention authentication requirements, side effects, or error handling. This is adequate but shallow.

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 compact and includes a structured metadata block. It avoids redundancy, though the parameter explanation could be better aligned with the actual schema.

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

Completeness2/5

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

While the output schema is declared, the description only lists output fields without detailing the actual argument format. The mismatch between the described inputs and the schema parameter makes the tool difficult to use correctly, leaving critical gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema defines a single string parameter 'args', but the description separately lists AppID, AppSecret, and expires_in as if they are independent inputs. This mismatch is misleading, and the description does not explain how these values should be passed within 'args'. Schema coverage is 0%, so the description fails to provide necessary parameter meaning.

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 states '获取微信公众号Access Token' (Get WeChat Official Account Access Token), which clearly identifies the verb (获取/get) and resource (Access Token). It is distinct from sibling tools that handle drafts and materials.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. While siblings are clearly different operations, there is no explicit context, prerequisites, or scenarios for using this token retrieval tool.

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/kakaxi3019/wechat_oa_mcp'

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