给出投资建议
trading_suggestGenerates investment recommendations for stocks and crypto, specifying action (buy/sell/hold), confidence score, and reasoning based on AI analysis.
Instructions
基于AI对其他工具提供的数据分析结果给出具体投资建议
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | 股票代码或加密币种 | |
| action | Yes | 推荐操作: buy/sell/hold | |
| score | Yes | 置信度,范围: 0-100 | |
| reason | Yes | 推荐理由 |
Implementation Reference
- mcp_aktools/__init__.py:509-511 (registration)The tool 'trading_suggest' is registered via the @mcp.tool decorator with a Chinese title '给出投资建议' (Give investment advice) and a description about providing investment suggestions based on AI analysis of data from other tools.
@mcp.tool( title="给出投资建议", description="基于AI对其他工具提供的数据分析结果给出具体投资建议", - mcp_aktools/__init__.py:513-524 (handler)The handler function for 'trading_suggest'. It takes four parameters: symbol (stock/crypto code), action (buy/sell/hold), score (confidence 0-100), and reason (recommendation rationale). Simply returns them as a dictionary.
def trading_suggest( symbol: str = Field(description="股票代码或加密币种"), action: str = Field(description="推荐操作: buy/sell/hold"), score: int = Field(description="置信度,范围: 0-100"), reason: str = Field(description="推荐理由"), ): return { "symbol": symbol, "action": action, "score": score, "reason": reason, } - mcp_aktools/__init__.py:513-524 (schema)The schema for input parameters includes symbol (string), action (string - buy/sell/hold), score (int 0-100), and reason (string). The output schema is a dictionary with the same four fields.
def trading_suggest( symbol: str = Field(description="股票代码或加密币种"), action: str = Field(description="推荐操作: buy/sell/hold"), score: int = Field(description="置信度,范围: 0-100"), reason: str = Field(description="推荐理由"), ): return { "symbol": symbol, "action": action, "score": score, "reason": reason, }