微信公众号长链接转短链接工具。将长URL转换为短链接,适用于二维码、短信等场景。
AI agents invoke wechat_short_url to trigger actions in WeChat Official Account MCP. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
This tool triggers an external operation via the WeChat API to transform a long URL into a short URL. It's not a pure read (it creates a new resource/mapping on WeChat's servers), but it's also not a direct write to user-owned data. It best fits Execute as it invokes an external WeChat service operation. Misuse could be used to obscure malicious URLs, hence medium severity.
From the tool's definition 将长URL转换为短链接 (converts long URLs to short links)
Documented attack patterns abuse exactly the kind of access wechat_short_url gives an agent:
PolicyLayer is an MCP gateway — it sits between your AI agents and WeChat Official Account MCP, and nothing reaches the server without passing your rules. This is the rule we recommend for wechat_short_url:
{
"version": "1",
"default": "deny",
"tools": {
"wechat_short_url": {
"limits": [
{
"counter": "wechat_short_url_rate",
"window": "minute",
"max": 10,
"scope": "grant"
}
]
}
}
} wechat_short_url stays usable, but rate-capped — a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
Free to start. No card required.
微信公众号长链接转短链接工具。将长URL转换为短链接,适用于二维码、短信等场景。. It is categorised as a Execute tool in the WeChat Official Account MCP MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the WeChat Official Account MCP server in PolicyLayer and add a rule for wechat_short_url: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches WeChat Official Account MCP. Nothing to install.
wechat_short_url is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the wechat_short_url rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for wechat_short_url. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
wechat_short_url is provided by the WeChat Official Account MCP server (xwang152-jack/wechat-official-account-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Deterministic rules across all 21 WeChat Official Account MCP tools. Per-identity grants. Full audit log. Live in minutes. Nothing to install.
Free to start. No card required.
21 WeChat Official Account MCP tools catalogued and risk-classified — across an index of 42,500+ MCP servers.