Skip to main content
Glama

MCP Stock Market

by ctoouli

calculatePortfolioValue

Determine the total value of a stock portfolio by inputting an array of holdings with symbol and share details using the MCP Stock Market server.

Instructions

Calculate total value of a portfolio given holdings

Input Schema

NameRequiredDescriptionDefault
holdingsYesArray 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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ctoouli/mcp-stock-market'

If you have feedback or need assistance with the MCP directory API, please join our Discord server