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
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Commander Spellbook numeric card IDs | |
| limit | No | ||
| offset | No |
Implementation Reference
- src/mcp-server.ts:452-455 (handler)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; }
- src/mcp-server.ts:440-444 (schema)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;
- src/mcp-server.ts:445-456 (registration)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; } );
- src/csb.ts:111-112 (helper)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 }),