Skip to main content
Glama
paperinvest

Paper MCP Server

by paperinvest

get_market_hours

Retrieve market hours for specific exchanges via the Paper MCP Server. Enables AI assistants to provide trading schedule details using natural language queries, supporting informed trading decisions.

Instructions

Get market hours for an exchange

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exchangeNoExchange name (optional)

Implementation Reference

  • Handler implementation for the 'get_market_hours' tool. Fetches market hours from the API endpoint, optionally filtered by exchange.
    case 'get_market_hours': if (args.exchange) { response = await api.get(`/market-data/market-hours/${args.exchange}`); } else { response = await api.get('/market-data/market-hours'); } break;
  • Tool definition including name, description, and input schema for 'get_market_hours' used in tool registration.
    name: 'get_market_hours', description: 'Get market hours for an exchange', inputSchema: { type: 'object', properties: { exchange: { type: 'string', description: 'Exchange name (optional)' } } } },
  • src/index.ts:388-392 (registration)
    Registration of all tools including 'get_market_hours' via the tools array returned in ListTools handler.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });

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