Skip to main content
Glama
OrionPotter

Meilisearch MCP Server

by OrionPotter

reset-embedders

Reset embedder configurations for a Meilisearch index to restore default settings or clear customizations, enabling vector search management.

Instructions

Reset the embedders configuration for an index

Input Schema

NameRequiredDescriptionDefault
indexUidYesUnique identifier of the index

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "indexUid": { "description": "Unique identifier of the index", "type": "string" } }, "required": [ "indexUid" ], "type": "object" }

Implementation Reference

  • The handler function for the 'reset-embedders' tool. It sends a DELETE request to the Meilisearch API to reset the embedders configuration 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); } }
  • The input schema for the 'reset-embedders' tool, defining the required 'indexUid' parameter.
    { indexUid: z.string().describe("Unique identifier of the index"), },
  • The server.tool() call that registers the 'reset-embedders' tool, including its name, description, schema, and handler.
    "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)
    The call to registerVectorTools(server) in the main server initialization, which registers the 'reset-embedders' tool among others.
    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/OrionPotter/iflow-mcp_meilisearch-ts-mcp'

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