Skip to main content
Glama

csb_find_combos_by_card_ids

Find Magic: The Gathering combos enabled by specific Commander Spellbook card IDs, including exact and partial matches.

Instructions

Find combos that the provided cards enable (exact and almost-included).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesCommander Spellbook numeric card IDs
limitNo
offsetNo

Implementation Reference

  • Inline handler function for the MCP tool 'csb_find_combos_by_card_ids' that delegates to CSB.findMyCombos and formats the response.
    async ({ ids, limit, offset }: { ids: number[]; limit?: number; offset?: number }) => { const res = await CSB.findMyCombos(ids, limit, offset); return { structuredContent: res } as any; }
  • Zod input schema defining parameters: ids (array of nonnegative integers), optional limit (1-100), optional offset (>=0).
    const csbFindCombosInput = { ids: z.array(z.number().int().nonnegative()).min(1).describe("Commander Spellbook numeric card IDs"), limit: z.number().int().min(1).max(100).optional(), offset: z.number().int().min(0).optional() } as const;
  • Registration of the MCP tool with name, metadata (title, description, inputSchema), and handler function.
    server.registerTool( "csb_find_combos_by_card_ids", { title: "CSB: Find combos by card IDs", description: "Find combos that the provided cards enable (exact and almost-included).", inputSchema: csbFindCombosInput }, async ({ ids, limit, offset }: { ids: number[]; limit?: number; offset?: number }) => { const res = await CSB.findMyCombos(ids, limit, offset); return { structuredContent: res } as any; } );
  • CSB helper method that constructs the API request to the Commander Spellbook backend's /find-my-combos endpoint with card IDs, limit, and offset.
    findMyCombos: (ids: number[], limit?: number, offset?: number) => getJson("/find-my-combos", { ids: ids.join(","), limit, offset }),

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/latte-chan/scryfall-connector'

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