Skip to main content
Glama

yeepay_yop_product_overview

Retrieve a product capability overview for Yeepay's YOP platform in markdown format, with linked details available for further exploration.

Instructions

通过此工具,获取易宝支付开放平台(YOP)的产品能力概览,内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容

Returns: str: 易宝支付开放平台(YOP)的产品能力概览(markdown格式)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function implementing the 'yeepay_yop_product_overview' tool. Decorated with @mcp.tool() for automatic registration in the FastMCP server. Downloads and returns the YOP product overview in markdown format.
    @mcp.tool() def yeepay_yop_product_overview() -> str: """ 通过此工具,获取易宝支付开放平台(YOP)的产品能力概览,内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容 Returns: str: 易宝支付开放平台(YOP)的产品能力概览(markdown格式) """ return HttpUtils.download_content( "https://open.yeepay.com/docs-v3/product/llms.txt" )
  • Supporting utility method HttpUtils.download_content called by the tool handler to fetch the content from the YOP product overview URL using httpx.
    def download_content(url: str, timeout: Optional[int] = None) -> str: """ 同步下载文件(无进度显示)并返回文件内容 Args: url: 下载地址 timeout: 超时时间(秒) Returns: str: 下载的文本内容 """ try: with httpx.Client(http2=True, timeout=timeout) as client: # 启用HTTP/2加速 response = client.get(url) response.raise_for_status() # 自动检测4xx/5xx错误 content = response.text print(f"已获取内容,长度: {len(content)} 字符") return content except httpx.HTTPStatusError as e: print(f"HTTP错误 {e.response.status_code}") return f"HTTP请求失败: HTTP {e.response.status_code}" except Exception as e: # 保持通用异常处理以支持测试 print(f"请求失败:{str(e)}") return f"HTTP请求失败: {str(e)}"
  • yop_mcp/main.py:26-37 (registration)
    The @mcp.tool() decorator registers this function as a tool in the FastMCP server instance defined at line 11.
    @mcp.tool() def yeepay_yop_product_overview() -> str: """ 通过此工具,获取易宝支付开放平台(YOP)的产品能力概览,内容中包含链接时可以调用工具yeepay_yop_link_detail进一步获取其详细内容 Returns: str: 易宝支付开放平台(YOP)的产品能力概览(markdown格式) """ return HttpUtils.download_content( "https://open.yeepay.com/docs-v3/product/llms.txt" )

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