Skip to main content
Glama

csb_variants_search

Search Commander Spellbook combo variants by filters such as cards used or effects produced to find specific Magic: The Gathering strategies.

Instructions

Search Commander Spellbook variants (combos) by filters like uses/produces.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
ofNoFilter variants that are of a specific combo ID group
offsetNo
producesNoFilter variants that produce this feature ID (e.g., Win the game = 2)
usesNoFilter variants that use this CSB card ID

Implementation Reference

  • Handler function for csb_variants_search tool: calls CSB.variants with params and returns structured content.
    async ({ uses, produces, of, limit, offset }: { uses?: number; produces?: number; of?: number; limit?: number; offset?: number }) => { const res = await CSB.variants({ uses, produces, of, limit, offset }); return { structuredContent: res } as any; }
  • Input schema (Zod shape) for csb_variants_search tool.
    const csbVariantsSearchInput = { uses: z.number().int().nonnegative().optional().describe("Filter variants that use this CSB card ID"), produces: z.number().int().nonnegative().optional().describe("Filter variants that produce this feature ID (e.g., Win the game = 2)"), of: z.number().int().nonnegative().optional().describe("Filter variants that are of a specific combo ID group"), limit: z.number().int().min(1).max(100).optional(), offset: z.number().int().min(0).optional() } as const;
  • Registration of the csb_variants_search tool using server.registerTool, including schema and handler.
    server.registerTool( "csb_variants_search", { title: "CSB: Search variants", description: "Search Commander Spellbook variants (combos) by filters like uses/produces.", inputSchema: csbVariantsSearchInput }, async ({ uses, produces, of, limit, offset }: { uses?: number; produces?: number; of?: number; limit?: number; offset?: number }) => { const res = await CSB.variants({ uses, produces, of, limit, offset }); return { structuredContent: res } as any; } );
  • CSB.variants helper: makes API GET request to /variants endpoint with parameters.
    variants: (opts: { uses?: number; produces?: number; of?: number; limit?: number; offset?: number }) => getJson("/variants", opts),

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