Skip to main content
Glama

Financial Modeling Prep MCP Server

Apache 2.0
17
59
  • Linux
  • Apple
isValidJsonRpc.ts781 B
/** * Validates if a request follows JSON-RPC 2.0 specification * @param request The parsed JSON-RPC request * @returns true if valid, false otherwise */ export function isValidJsonRpc(request: any): boolean { // Must be an object if (!request || typeof request !== "object") return false; // Must have jsonrpc property with value "2.0" if (request.jsonrpc !== "2.0") return false; // Must have method property that is a string if (typeof request.method !== "string") return false; // Must have id (can be string, number, null, but not undefined) if (request.id === undefined) return false; // If params exists, it must be an object or array if (request.params !== undefined && !(typeof request.params === "object")) return false; return true; }

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/imbenrabi/Financial-Modeling-Prep-MCP-Server'

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