get_stock_data_by_name
Retrieve detailed stock information for Indian companies by entering the company name. Access current prices, historical data, and market statistics from NSE and BSE exchanges.
Instructions
$23a
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": {
"name": "<name>"
},
"name": "get_stock_data_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Example value: tata steel |
Implementation Reference
- server.py:56-61 (handler)The "get_stock_data_by_name" tool is automatically generated by FastMCP.from_openapi from the OpenAPI specification defined in the OPENAPI_SPEC constant.
mcp = FastMCP.from_openapi( openapi_spec=openapi_dict, client=client, name="indian_stock_exchange_api2", version=__version__ )