reset-embedders
Reset embedder configurations for a Meilisearch index to restore default settings and resolve embedding-related issues.
Instructions
Reset the embedders configuration for an index
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexUid | Yes | Unique identifier of the index |
Implementation Reference
- src/tools/vector-tools.ts:113-122 (handler)Handler function that resets the embedders configuration by sending a DELETE request to the Meilisearch API endpoint 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); } }
- src/tools/vector-tools.ts:110-112 (schema)Zod schema defining the input parameter 'indexUid' as a required string.{ indexUid: z.string().describe("Unique identifier of the index"), },
- src/tools/vector-tools.ts:107-123 (registration)Registration of the 'reset-embedders' tool on the MCP server, including name, description, input 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); } } );