Skip to main content
Glama

get_profiles

Extract user profile data from Anki MCP for analysis or integration, enabling streamlined access to structured profile information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler logic for the 'get_profiles' MCP tool. It calls ankiClient.miscellaneous.getProfiles() to fetch Anki profiles and returns them formatted as text content in the MCP response format.
    server.tool('get_profiles', {}, async () => { try { const profiles = await ankiClient.miscellaneous.getProfiles(); return { content: [ { type: 'text', text: `Available profiles: ${JSON.stringify(profiles, null, 2)}`, }, ], }; } catch (error) { throw new Error( `Failed to get profiles: ${error instanceof Error ? error.message : String(error)}` ); } });
  • Registers the 'get_profiles' tool on the MCP server with no input parameters (empty schema) and the inline handler.
    server.tool('get_profiles', {}, async () => { try { const profiles = await ankiClient.miscellaneous.getProfiles(); return { content: [ { type: 'text', text: `Available profiles: ${JSON.stringify(profiles, null, 2)}`, }, ], }; } catch (error) { throw new Error( `Failed to get profiles: ${error instanceof Error ? error.message : String(error)}` ); } });
  • Helper implementation of get_profiles logic inside the 'anki_operations' consolidated tool's switch case, providing similar functionality as a sub-operation.
    case 'get_profiles': { const profiles = await ankiClient.miscellaneous.getProfiles(); return { content: [ { type: 'text', text: `Available profiles:\n${JSON.stringify(profiles, null, 2)}`, }, ], }; }
  • Lists 'getProfiles' as an available AnkiConnect action in the 'multi' tool's action enum.
    'getProfiles',

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