calculatePortfolioValue
Compute the total value of a stock portfolio by analyzing holdings, including symbol and share count, using real-time market data from the MCP Stock Market server.
Instructions
Calculate total value of a portfolio given holdings
Input Schema
Name | Required | Description | Default |
---|---|---|---|
holdings | Yes | Array of stock holdings with symbol and shares |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"holdings": {
"description": "Array of stock holdings with symbol and shares",
"items": {
"additionalProperties": false,
"properties": {
"shares": {
"type": "number"
},
"symbol": {
"type": "string"
}
},
"required": [
"symbol",
"shares"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"holdings"
],
"type": "object"
}