Skip to main content
Glama
aahl

AkTools MCP Server

by aahl

获取加密货币分析报告

binance_ai_report

Retrieves AI-generated analysis reports from Binance for any cryptocurrency, providing insights into market trends and performance.

Instructions

获取币安对加密货币的AI分析报告,此工具对分析加密货币非常有用,推荐使用

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNo加密货币币种,格式: BTC 或 ETHBTC

Implementation Reference

  • The main handler function for the 'binance_ai_report' tool. It sends a POST request to Binance's AI report API to fetch an AI-generated analysis report for a given cryptocurrency symbol (e.g., BTC, ETH). It then extracts and returns the translated report content from the response.
    def binance_ai_report(
        symbol: str = Field("BTC", description="加密货币币种,格式: BTC 或 ETH"),
    ):
        res = requests.post(
            f"{BINANCE_BASE_URL}/bapi/bigdata/v3/friendly/bigdata/search/ai-report/report",
            json={
                'lang': 'zh-CN',
                'token': symbol,
                'symbol': f'{symbol}USDT',
                'product': 'web-spot',
                'timestamp': int(time.time() * 1000),
                'translateToken': None,
            },
            headers={
                'User-Agent': USER_AGENT,
                'Referer': f'https://www.binance.com/zh-CN/trade/{symbol}_USDT?type=spot',
                'lang': 'zh-CN',
            },
            timeout=20,
        )
        try:
            resp = res.json() or {}
        except Exception:
            try:
                resp = json.loads(res.text.strip()) or {}
            except Exception:
                return res.text
        data = resp.get('data') or {}
        report = data.get('report') or {}
        translated = report.get('translated') or report.get('original') or {}
        modules = translated.get('modules') or []
        txts = []
        for module in modules:
            if tit := module.get('overview'):
                txts.append(tit)
            for point in module.get('points', []):
                txts.append(point.get('content', ''))
        return '\n'.join(txts)
  • The MCP tool registration using the @mcp.tool decorator. It registers 'binance_ai_report' with title '获取加密货币分析报告' and description '获取币安对加密货币的AI分析报告,此工具对分析加密货币非常有用,推荐使用' (Get Binance's AI analysis report for cryptocurrencies).
    @mcp.tool(
        title="获取加密货币分析报告",
        description="获取币安对加密货币的AI分析报告,此工具对分析加密货币非常有用,推荐使用",
    )
  • The input schema for the tool: accepts a single parameter 'symbol' (a string with description '加密货币币种,格式: BTC 或 ETH', defaulting to 'BTC').
    def binance_ai_report(
        symbol: str = Field("BTC", description="加密货币币种,格式: BTC 或 ETH"),
  • Environment variable configuration for BINANCE_BASE_URL used by the handler to build the API endpoint URL. Defaults to 'https://www.binance.com'.
    OKX_BASE_URL = os.getenv("OKX_BASE_URL") or "https://www.okx.com"
    BINANCE_BASE_URL = os.getenv("BINANCE_BASE_URL") or "https://www.binance.com"
    USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10) AppleWebKit/537.36 Chrome/139"
Behavior2/5

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

No annotations are provided, so the description must disclose behavior. It only indicates it 'gets' a report, implying a read operation, but lacks details on output format, data freshness, or any limitations. This is insufficient for a report tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, but the second sentence ('此工具对分析加密货币非常有用,推荐使用') adds no value and wastes space. It is adequately concise but not efficient.

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

Completeness2/5

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

Given the tool's simplicity (one parameter, no output schema), the description should explain what the report contains (e.g., key metrics, sentiment, price predictions). It fails to provide this context, leaving the agent with an incomplete understanding.

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?

The input schema covers the single parameter with a description and default value. The description does not add any new meaning beyond the schema, resulting in a baseline score of 3 for high schema coverage.

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 clearly states it retrieves an AI analysis report for cryptocurrencies from Binance, using a specific verb ('获取') and resource. It is distinct from all sibling tools which focus on stocks or other financial data.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives or what prerequisites exist. It merely states the tool is 'very useful' and 'recommended', which is vague and not actionable.

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/aahl/mcp-aktools'

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