Skip to main content
Glama

Manifold Markets MCP Server

get_market

Retrieve comprehensive details about a specific market on Manifold Markets using its unique market ID to access key information for decision-making.

Instructions

Get detailed information about a specific market

Input Schema

NameRequiredDescriptionDefault
marketIdYesMarket ID

Input Schema (JSON Schema)

{ "properties": { "marketId": { "description": "Market ID", "type": "string" } }, "required": [ "marketId" ], "type": "object" }

Implementation Reference

  • Handler function for 'get_market' tool that fetches and returns detailed market information from the Manifold Markets API using the provided marketId.
    case 'get_market': { const { marketId } = GetMarketSchema.parse(args); const response = await fetch(`${API_BASE}/v0/market/${marketId}`, { headers: { Accept: 'application/json' }, }); if (!response.ok) { throw new McpError( ErrorCode.InternalError, `Manifold API error: ${response.statusText}` ); } const market = await response.json(); return { content: [ { type: 'text', text: JSON.stringify(market, null, 2), }, ], }; }
  • Zod schema defining the input parameters for the get_market tool, requiring a marketId string.
    const GetMarketSchema = z.object({ marketId: z.string(), });
  • src/index.ts:227-237 (registration)
    Tool registration in the MCP server's listTools response, defining name, description, and inputSchema for get_market.
    { name: 'get_market', description: 'Get detailed information about a specific market', inputSchema: { type: 'object', properties: { marketId: { type: 'string', description: 'Market ID' }, }, required: ['marketId'], }, },

Other Tools

Related 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/bmorphism/manifold-mcp-server'

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