maasy_get_skill
Retrieve comprehensive details of a skill, including its content and auto-generated quick action pills, by providing the skill UUID.
Instructions
Get full details of a skill including content and auto-generated quick action pills.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skill_id | Yes | Skill UUID |
Implementation Reference
- src/index.ts:112-117 (registration)Registration of the 'maasy_get_skill' tool on the MCP server with schema (skill_id) and handler (toolHandler('get_skill')).
server.tool( "maasy_get_skill", "Get full details of a skill including content and auto-generated quick action pills.", { skill_id: z.string().describe("Skill UUID") }, toolHandler("get_skill") ); - src/index.ts:26-43 (handler)The toolHandler function wraps the actual callGateway call. For 'maasy_get_skill', it calls callGateway('get_skill', { skill_id, ... }) and returns the result as JSON text.
function toolHandler(toolName: string, argsFn?: (args: Record<string, unknown>) => Record<string, unknown>) { return async (args: Record<string, unknown>) => { try { const gatewayArgs = argsFn ? argsFn(args) : args; // Auto-inject default project_id if not provided if (DEFAULT_PROJECT_ID && !gatewayArgs.project_id) { gatewayArgs.project_id = DEFAULT_PROJECT_ID; } const result = await callGateway(toolName, gatewayArgs); return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text" as const, text: `Error: ${e instanceof Error ? e.message : String(e)}` }], isError: true, }; } }; } - src/supabase.ts:42-59 (helper)The callGateway function that sends the tool name ('get_skill') and arguments to the Supabase edge function gateway. This is the actual execution layer.
export async function callGateway(tool: string, args: Record<string, unknown> = {}): Promise<unknown> { const res = await fetch(gatewayUrl, { method: "POST", headers: { "Content-Type": "application/json", [authHeader.name]: authHeader.value, }, body: JSON.stringify({ tool, args }), }); const data = await res.json(); if (!res.ok) { throw new Error(data.error || `Gateway error (${res.status})`); } return data.result; } - src/index.ts:115-115 (schema)Input schema for 'maasy_get_skill': requires a 'skill_id' string (Skill UUID).
{ skill_id: z.string().describe("Skill UUID") },