Skip to main content
Glama

cuqu-mcp

generate_urllink

为小程序页面生成 URL Link(微信外可打开的标准链接)。

用户想获得某个页面(通常是活动详情页)的可分享链接时调用。
生成的 https://wxaurl.cn/ 链接可在短信、邮件、网页、AI 应用等微信外场景打开,
点击后唤起微信小程序对应页面。

Args:
    activity_id: 活动 ID。提供时自动映射到活动详情页(path=pages/activity/detail, query=id=xxx)。
    path: 小程序页面路径,如 "pages/index/index"。提供 activity_id 时忽略。
    query: 页面参数(urlencode 后的字符串),如 "id=act_001"。提供 activity_id 时忽略。

Returns:
    JSON 字符串,包含 URL Link、页面路径和参数

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
queryNo
activity_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral disclosure burden. It discloses the generated link domain (https://wxaurl.cn/), the out-of-WeChat opening behavior, the click-through behavior into the mini program, and the precedence rule that activity_id overrides path and query. It does not mention side effects or rate limits, but for a link-generation tool the disclosed behavior is substantive.

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 core purpose is front-loaded, followed by a compact Args block and a Returns line. The repeated '提供 activity_id 时忽略' note is slightly redundant but serves to reinforce a critical precedence rule in the parameter descriptions. Overall, there is no filler content.

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 tool's moderate complexity, the description covers purpose, user intent, all three parameters, precedence, the output type, and the generated link's behavior. Since an output schema exists, the exact return keys do not need to be repeated in prose. This is sufficient for an agent to select and correctly invoke the tool.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must explain all parameters, and it does thoroughly. It defines activity_id as mapping to a fixed activity detail page, path with a concrete example, and query as a urlencoded string with an example. It also explains the precedence relationship among parameters, which the schema itself does not convey.

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 opens with a specific verb and resource: '为小程序页面生成 URL Link' and clarifies that the link is a standard link openable outside WeChat. The stated trigger—'用户想获得某个页面(通常是活动详情页)的可分享链接时调用'—clearly separates it from the event/activity management siblings like create_activity or check_in.

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?

It explicitly says to call when the user wants a shareable link for a mini program page, usually an activity detail page. It does not list exclusions or name alternative tools, but no sibling tool appears to generate URL Links, so the when-to-use guidance is clear and sufficient.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources