Skip to main content
Glama

get_active_profile

Retrieve the currently active profile configuration from Anki MCP, enabling users to manage and monitor profile settings effectively.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • This is the core handler implementation for the MCP tool 'get_active_profile'. It registers the tool with an empty input schema and executes logic to fetch the active Anki profile name via the ankiClient library, returning a formatted text response or throwing an error if failed.
    server.tool('get_active_profile', {}, async () => { try { const profileName = await ankiClient.miscellaneous.getActiveProfile(); return { content: [ { type: 'text', text: `Active profile: ${profileName}`, }, ], }; } catch (error) { throw new Error( `Failed to get active profile: ${error instanceof Error ? error.message : String(error)}` ); } });

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arielbk/anki-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server