Skip to main content
Glama
devlimelabs

Meilisearch MCP Server

by devlimelabs

reset-embedders

Reset the embedders configuration for a specified Meilisearch index to manage document embeddings and improve search accuracy via the Model Context Protocol.

Instructions

Reset the embedders configuration for an index

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexUidYesUnique identifier of the index

Implementation Reference

  • The handler function for the 'reset-embedders' tool that deletes the embedders settings via API for the specified index.
    async ({ indexUid }) => { try { const response = await apiClient.delete(`/indexes/${indexUid}/settings/embedders`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } }
  • Zod input schema defining the required 'indexUid' parameter.
    { indexUid: z.string().describe("Unique identifier of the index"), },
  • The server.tool() call that registers the 'reset-embedders' tool with name, description, schema, and inline handler function.
    server.tool( "reset-embedders", "Reset the embedders configuration for an index", { indexUid: z.string().describe("Unique identifier of the index"), }, async ({ indexUid }) => { try { const response = await apiClient.delete(`/indexes/${indexUid}/settings/embedders`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );
  • src/index.ts:68-68 (registration)
    Invocation of registerVectorTools which includes the registration of 'reset-embedders' among other vector tools.
    registerVectorTools(server);

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/devlimelabs/meilisearch-ts-mcp'

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