calculate_stock_metrics
Computes a local stock scorecard from supplied filing inputs for current and prior periods, with optional P/E from explicit trailing EPS and a dated close.
Instructions
Calculate a local scorecard from supplied filing inputs. Currency and scale apply to both periods. EPS and price always use major currency units per share. An optional P/E requires explicitly supplied trailing-year diluted EPS and a dated close. Returns decimal strings and nulls for unavailable measures.
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": {
"current": "<current>",
"currency": "<currency>",
"amount_scale": "<amount_scale>"
},
"name": "calculate_stock_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prior | No | ||
| current | Yes | ||
| currency | Yes | Three-letter reporting currency. Use major units for all per-share figures. | |
| valuation | No | ||
| amount_scale | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||