get_vibes
List available vibe identifiers to set the visual style of AI-generated presentations. Use this tool to see style options before creating slides.
Instructions
List available vibe identifiers that control the visual style of generated decks. Use this before setting vibe_id on generate_presentation or create_slide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:200-214 (registration)Registration of the 'get_vibes' tool via server.registerTool with an empty input schema.
server.registerTool( "get_vibes", { description: "List available vibe identifiers that control the visual style of generated decks. Use this before setting vibe_id on generate_presentation or create_slide.", inputSchema: {}, }, async () => { try { return await callRemoteTool("get_vibes", {}); } catch (error) { return normalizeError(error); } }, ); - src/index.js:207-213 (handler)Handler function that calls the remote MCP tool 'get_vibes' with no arguments. This is the actual execution logic of the tool.
async () => { try { return await callRemoteTool("get_vibes", {}); } catch (error) { return normalizeError(error); } }, - src/index.js:22-43 (helper)Generic helper that forwards tool calls to the remote Alai MCP endpoint. Used by get_vibes (and all other tools) to invoke the actual implementation upstream.
async function callRemoteTool(name, args) { const client = new Client( { name: "alai-mcp-wrapper", version: "1.0.2" }, { capabilities: {} }, ); const transport = new StreamableHTTPClientTransport(new URL(REMOTE_MCP_URL), { requestInit: { headers: createRemoteHeaders(), }, }); try { await client.connect(transport); return await client.callTool({ name, arguments: args, }); } finally { await transport.close().catch(() => {}); await client.close().catch(() => {}); } } - src/index.js:202-205 (schema)Schema/description for the get_vibes tool. Input schema is empty (no parameters required).
{ description: "List available vibe identifiers that control the visual style of generated decks. Use this before setting vibe_id on generate_presentation or create_slide.", inputSchema: {}, - src/index.js:51-72 (helper)Error normalization helper used by the get_vibes handler (and other tools) to format upstream errors.
function normalizeError(error) { const message = error instanceof Error ? error.message : "Unknown upstream error"; return { content: [ { type: "text", text: `Alai upstream request failed: ${message}`, }, ...(authGuidance() ? [ { type: "text", text: authGuidance(), }, ] : []), ], isError: true, }; }