list_sections
Browse all available sections in the French Roller Derby rulebook to locate specific rules on game parameters, scoring, penalties, and officiating.
Instructions
List all available rules sections
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:114-127 (handler)The asynchronous handler function for the 'list_sections' tool. It returns a JSON-formatted list of all available rules sections using the predefined SECTIONS array.async () => { return { content: [ { type: "text", text: JSON.stringify( SECTIONS.map((s) => ({ id: s.id, name: s.name })), null, 2 ), }, ], }; }
- index.js:107-128 (registration)The server.registerTool call that registers the 'list_sections' tool, including its name, schema, and handler function.// Tool: list_sections server.registerTool( "list_sections", { description: "List all available rules sections", inputSchema: {}, }, async () => { return { content: [ { type: "text", text: JSON.stringify( SECTIONS.map((s) => ({ id: s.id, name: s.name })), null, 2 ), }, ], }; } );
- index.js:110-113 (schema)The input schema and description for the 'list_sections' tool. Note that inputSchema is empty as the tool takes no parameters.{ description: "List all available rules sections", inputSchema: {}, },
- index.js:32-43 (helper)The SECTIONS constant array defining all available rules sections, which is mapped and returned by the list_sections tool handler.const SECTIONS = [ { id: "00-introduction", name: "Introduction", file: "00-introduction.md" }, { id: "01-parametres", name: "Match parameters and safety", file: "01-parametres.md", }, { id: "02-le-jeu", name: "The game", file: "02-le-jeu.md" }, { id: "03-score", name: "Score", file: "03-score.md" }, { id: "04-penalites", name: "Penalties", file: "04-penalites.md" }, { id: "05-arbitrage", name: "Officiating", file: "05-arbitrage.md" }, ];