List score configurations
listScoreConfigsRetrieve score configurations for names, ranges, and categories. Supports pagination to manage large sets.
Instructions
List score configurations (definitions for score names, ranges, and categories).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1) | |
| limit | No | Items per page (default 50, max 100) |
Implementation Reference
- src/tools.ts:131-140 (registration)Registration of the 'listScoreConfigs' tool via server.registerTool(...).
server.registerTool( "listScoreConfigs", { title: "List score configurations", description: "List score configurations (definitions for score names, ranges, and categories).", inputSchema: { ...paginationShape }, }, async (args) => asJson(await client.get("/api/public/score-configs", args)), ); - src/tools.ts:139-139 (handler)Handler function for listScoreConfigs: calls GET /api/public/score-configs with pagination args.
async (args) => asJson(await client.get("/api/public/score-configs", args)), - src/schemas.ts:3-12 (schema)Input schema: paginationShape defines optional page and limit fields used by listScoreConfigs.
export const paginationShape = { page: z.number().int().positive().optional().describe("Page number (default 1)"), limit: z .number() .int() .min(1) .max(100) .optional() .describe("Items per page (default 50, max 100)"), }; - src/tools.ts:6-8 (helper)Helper function asJson wraps data in MCP content response format.
const asJson = (data: unknown) => ({ content: [{ type: "text" as const, text: JSON.stringify(data, null, 2) }], }); - src/tools.ts:10-10 (helper)Helper enc for URI-encoding URL parameters.
const enc = encodeURIComponent;