Skip to main content
Glama
paperinvest

Paper MCP Server

by paperinvest

is_market_open

Determine if the market is open for a specific stock symbol using the Paper MCP Server. Ideal for traders and AI assistants to verify market status and make informed decisions.

Instructions

Check if market is open for a symbol

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock symbol

Implementation Reference

  • Handler implementation for the 'is_market_open' tool. It extracts the symbol from arguments and calls the backend API endpoint `/market-data/is-market-open/${symbol}` to get the market open status.
    case 'is_market_open': response = await api.get(`/market-data/is-market-open/${args.symbol}`); break;
  • Input schema for the 'is_market_open' tool, specifying that a 'symbol' string parameter is required.
    inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Stock symbol' } }, required: ['symbol'] }
  • src/index.ts:331-341 (registration)
    Tool registration entry in the tools array, defining the name, description, and input schema for listing via ListToolsRequest.
    { name: 'is_market_open', description: 'Check if market is open for a symbol', inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Stock symbol' } }, required: ['symbol'] } },

Latest Blog Posts

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/paperinvest/mcp-server'

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