corporate_actions
Retrieve corporate actions data for Indian stocks, including dividends, splits, and bonus issues, to inform investment decisions and track company announcements.
Instructions
Get Corporate Actions Data
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": {
"stock_name": "<stock_name>"
},
"name": "corporate_actions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock_name | Yes | Example value: infosys |
Implementation Reference
- server.py:56-61 (handler)The FastMCP server is initialized using FastMCP.from_openapi, which automatically generates handlers for all endpoints defined in the OpenAPI specification, including 'corporate_actions'.
mcp = FastMCP.from_openapi( openapi_spec=openapi_dict, client=client, name="indian_stock_exchange_api2", version=__version__ )