Skip to main content
Glama

yeepay_yop_link_detail

Retrieve detailed content from YeePay Open Platform (YOP) subpages or external links to access payment integration information and documentation.

Instructions

通过此工具,获取易宝支付开放平台(YOP)的各个子页面或者外部链接的详细内容,内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容

Args: url: str - 易宝支付开放平台(YOP)的子页面的URL地址

Returns: str: 易宝支付开放平台(YOP)的各个子页面的详细内容

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The main handler function for the 'yeepay_yop_link_detail' tool, registered via @mcp.tool() decorator. It fetches detailed content from YOP platform links, handling both absolute and relative URLs using HttpUtils.download_content.
    @mcp.tool()
    def yeepay_yop_link_detail(url: str) -> str:
        """
        通过此工具,获取易宝支付开放平台(YOP)的各个子页面或者外部链接的详细内容,内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容
    
        Args:
            url: str - 易宝支付开放平台(YOP)的子页面的URL地址
    
        Returns:
            str: 易宝支付开放平台(YOP)的各个子页面的详细内容
    
        """
        try:
            if url.startswith("http"):
                return HttpUtils.download_content(url)
    
            url = ("https://open.yeepay.com/" + url).replace("//", "/")
            return HttpUtils.download_content(url)
        except (ValueError, TypeError, ConnectionError):
            return "HTTP请求失败, url: " + url
  • Registration of the 'yeepay_yop_link_detail' tool using the FastMCP @mcp.tool() decorator.
    @mcp.tool()
  • Docstring providing the tool schema, including description, arguments (url: str), and return type (str). Used by FastMCP for input/output schema.
    """
    通过此工具,获取易宝支付开放平台(YOP)的各个子页面或者外部链接的详细内容,内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容
    
    Args:
        url: str - 易宝支付开放平台(YOP)的子页面的URL地址
    
    Returns:
        str: 易宝支付开放平台(YOP)的各个子页面的详细内容
    
    """
Behavior2/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 mentions the tool can be called recursively for links within content, which adds some behavioral context. However, it lacks details on authentication needs, rate limits, error handling, or what '详细内容' (detailed content) entails beyond the return type string. This is inadequate for a tool with no annotation coverage.

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 appropriately sized with two sentences: one stating the purpose and recursive usage, and another in an Args/Returns format. It's front-loaded with the main function, though the formatting could be more integrated. No wasted sentences, but slight redundancy in the Returns statement.

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

Completeness3/5

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

Given 1 parameter, no annotations, and an output schema (true), the description is moderately complete. It covers the basic purpose and parameter semantics, and the output schema handles return values. However, for a tool with no annotations and recursive behavior, more details on operational constraints (e.g., depth limits, URL validation) would improve completeness.

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

Parameters3/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 compensate. It adds that the 'url' parameter is for '易宝支付开放平台(YOP)的子页面的URL地址' (YOP subpage URL address), providing meaning beyond the schema's generic string type. However, with 1 parameter and no schema descriptions, this is minimal compensation, aligning with the baseline for low coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: '获取易宝支付开放平台(YOP)的各个子页面或者外部链接的详细内容' (get detailed content of YOP subpages or external links). It specifies the verb '获取' (get) and resource '详细内容' (detailed content), but doesn't explicitly differentiate from siblings like 'yeepay_yop_overview' which might also retrieve content.

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

Usage Guidelines3/5

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

The description implies usage context: '内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容' (when content contains links, you can call this tool to further get their detailed content). This suggests it's for recursive content retrieval, but doesn't provide explicit when-to-use vs. alternatives like 'yeepay_yop_api_detail' or clear exclusions.

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/yop-platform/yop-mcp'

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