relay_skills_list
Discover pre-built workflow skills for common tasks like invoice processing and content pipelines. Filter by category to find reusable patterns with usage examples and context reduction metrics.
Instructions
List available pre-built workflow skills. Skills are reusable patterns for common tasks (invoice processing, content pipelines, etc.). Returns skill names, descriptions, context reduction metrics, and usage examples.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Optional: filter by category |
Implementation Reference
- src/tools/relay-skills-list.ts:115-134 (handler)Core handler function that lists available skills, optionally filters by category, sorts them by category and name, and returns the response.export async function relaySkillsList( input: RelaySkillsListInput ): Promise<RelaySkillsListResponse> { let skills = [...SKILLS]; // Filter by category if specified if (input.category && input.category !== 'all') { skills = skills.filter(s => s.category === input.category); } // Sort by category, then by name skills.sort((a, b) => { if (a.category !== b.category) { return a.category.localeCompare(b.category); } return a.name.localeCompare(b.name); }); return { skills }; }
- src/tools/relay-skills-list.ts:10-15 (schema)Zod schema for input validation of the relay_skills_list tool.export const relaySkillsListSchema = z.object({ category: z .enum(['extraction', 'content', 'integration', 'all']) .optional() .describe('Optional: filter by category'), });
- src/tools/relay-skills-list.ts:136-150 (registration)MCP tool definition including name, description, and input schema specification used for registration.export const relaySkillsListDefinition = { name: 'relay_skills_list', description: 'List available pre-built workflow skills. Skills are reusable patterns for common tasks (invoice processing, content pipelines, etc.). Returns skill names, descriptions, context reduction metrics, and usage examples.', inputSchema: { type: 'object' as const, properties: { category: { type: 'string', description: 'Optional: filter by category', enum: ['extraction', 'content', 'integration', 'all'], }, }, }, };
- src/server.ts:59-67 (registration)The relaySkillsListDefinition is included in the TOOLS array, which is served in response to listTools requests.const TOOLS = [ relayModelsListDefinition, relayRunDefinition, relayWorkflowRunDefinition, relayWorkflowValidateDefinition, relaySkillsListDefinition, relayRunsListDefinition, relayRunGetDefinition, ];
- src/server.ts:129-132 (registration)Dispatch logic in the central callTool handler that parses input with the schema and invokes the tool handler.case 'relay_skills_list': { const parsed = relaySkillsListSchema.parse(args || {}); result = await relaySkillsList(parsed); break;