Skip to main content
Glama
matchSnapshot.ts636 B
import { z } from "zod"; import { FastMCP } from "fastmcp"; import { buildMatchSnapshot } from "../services/matchSnapshot.js"; export const registerMatchSnapshotTool = (server: FastMCP) => { server.addTool({ name: "match_snapshot", description: "Restituisce forma, classifica, gol fatti/subiti e ultimi risultati per il match richiesto.", parameters: z.object({ match_id: z.number().int().describe("match_id fornito da Football-Data.org"), }), execute: async (args) => { const snapshot = await buildMatchSnapshot(args.match_id); return JSON.stringify(snapshot, null, 2); }, }); };

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/Valerio357/bet-mcp'

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