使用阿里云万相文生图大模型的文生图能力,由于图片生成耗时比较久,需要调用 wanx-t2i-image-generation-result 工具获取结果
AI agents invoke wanx-t2i-image-generation to trigger actions in Tongyi Wanxiang MCP Server. 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 API call to Alibaba Cloud's text-to-image generation service. It initiates an asynchronous operation (image generation) on an external platform. This is an Execute category action as it invokes an external service/API whose effects depend on the input arguments.
From the tool's definition 使用阿里云万相文生图大模型的文生图能力 (uses Alibaba Cloud Wanxiang text-to-image model capability); triggers an async image generation task requiring a follow-up tool call
Documented attack patterns abuse exactly the kind of access wanx-t2i-image-generation gives an agent:
PolicyLayer is an MCP gateway — it sits between your AI agents and Tongyi Wanxiang MCP Server, and nothing reaches the server without passing your rules. This is the rule we recommend for wanx-t2i-image-generation:
{
"version": "1",
"default": "deny",
"tools": {
"wanx-t2i-image-generation": {
"limits": [
{
"counter": "wanx-t2i-image-generation_rate",
"window": "minute",
"max": 10,
"scope": "grant"
}
]
}
}
} wanx-t2i-image-generation 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.
使用阿里云万相文生图大模型的文生图能力,由于图片生成耗时比较久,需要调用 wanx-t2i-image-generation-result 工具获取结果. It is categorised as a Execute tool in the Tongyi Wanxiang MCP Server MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Tongyi Wanxiang MCP Server MCP server in PolicyLayer and add a rule for wanx-t2i-image-generation: 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 Tongyi Wanxiang MCP Server. Nothing to install.
wanx-t2i-image-generation 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 wanx-t2i-image-generation 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 wanx-t2i-image-generation. 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.
wanx-t2i-image-generation is provided by the Tongyi Wanxiang MCP Server MCP server (suixinlei/tongyi-wanx-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Start from Tongyi Wanxiang MCP Server, add the rest of your stack, and see everything your agents can call. Then put policy on all of it.
Free to start. No card required.
4 Tongyi Wanxiang MCP Server tools catalogued and risk-classified — across an index of 43,000+ MCP servers.