get-embedders
Retrieve configured embedders for a Meilisearch index to manage vector search settings and enable semantic search functionality.
Instructions
Get 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:94-103 (handler)Executes the tool by fetching embedders configuration from Meilisearch API for the given indexUid.async ({ indexUid }) => { try { const response = await apiClient.get(`/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:91-93 (schema)Zod schema defining the input parameters for the tool.{ indexUid: z.string().describe("Unique identifier of the index"), },
- src/tools/vector-tools.ts:88-104 (registration)Registers the 'get-embedders' tool on the MCP server with name, description, input schema, and handler function.server.tool( "get-embedders", "Get the embedders configuration for an index", { indexUid: z.string().describe("Unique identifier of the index"), }, async ({ indexUid }) => { try { const response = await apiClient.get(`/indexes/${indexUid}/settings/embedders`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );