Skip to main content
Glama

reload_collection

Reload the card collection in Anki MCP to refresh and update all stored data, ensuring changes are instantly accessible for use.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'reload_collection' MCP tool. It invokes ankiClient.miscellaneous.reloadCollection() to reload the Anki collection and returns a success message or throws an error.
    server.tool('reload_collection', {}, async () => { try { await ankiClient.miscellaneous.reloadCollection(); return { content: [ { type: 'text', text: 'Successfully reloaded collection', }, ], }; } catch (error) { throw new Error( `Failed to reload collection: ${error instanceof Error ? error.message : String(error)}` ); } });
  • Registration of the 'reload_collection' tool using server.tool within the registerMiscellaneousTools function.
    server.tool('reload_collection', {}, async () => { try { await ankiClient.miscellaneous.reloadCollection(); return { content: [ { type: 'text', text: 'Successfully reloaded collection', }, ], }; } catch (error) { throw new Error( `Failed to reload collection: ${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