mcp_calculate_financial_metrics
Calculate key financial metrics like gross margin, ROE, and PE ratio using financial data for analysis and decision-making in investment research.
Instructions
Calculates financial metrics from the provided data. The metrics are:
- gross_margin (need retrieve income_statement)
- operating_margin (need retrieve income_statement)
- net_profit_margin (need retrieve income_statement)
- ebitda (need retrieve income_statement)
- debt_to_equity (need retrieve balance_sheet)
- current_ratio (need retrieve balance_sheet)
- quick_ratio (need retrieve balance_sheet)
- book_value_per_share (need retrieve balance_sheet)
- free_cash_flow (need retrieve cash_flow)
- cash_flow_margin (need retrieve cash_flow)
- roe (need retrieve income_statement and balance_sheet)
- roa (need retrieve income_statement and balance_sheet)
- pe_ratio (need retrieve income_statement and market)
- pb_ratio (need retrieve income_statement and market)
- dividend_yield (need retrieve income_statement and market)
Args:
financial_data: Dict with financial data.
indicator: str, one of the supported metric names
window: int, window size for the indicator
Returns:
Dict with financial metrics name as key and value as value. e.g. {'gross_margin': 0.5}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"financial_data": "<financial_data>",
"indicator": "<indicator>"
},
"name": "mcp_calculate_financial_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| financial_data | Yes | ||
| indicator | Yes |