Skip to main content
Glama
devlimelabs

Meilisearch MCP Server

by devlimelabs

reset-typo-tolerance

Reset typo tolerance settings to default values for a Meilisearch index to restore standard search behavior and correct configuration issues.

Instructions

Reset the typo tolerance setting to its default value

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexUidYesUnique identifier of the index

Implementation Reference

  • The handler function that executes the reset-typo-tolerance tool by sending a DELETE request to the Meilisearch API to reset the typo-tolerance setting for the given index.
    async ({ indexUid }) => { try { const response = await apiClient.delete(`/indexes/${indexUid}/settings/${endpoint}`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } }
  • The input schema for the reset-typo-tolerance tool, requiring the indexUid parameter.
    { indexUid: z.string().describe("Unique identifier of the index"), },
  • The configuration object in the resetSettingsTools array that defines the name, endpoint, and description for the reset-typo-tolerance tool.
    { name: "reset-typo-tolerance", endpoint: "typo-tolerance", description: "Reset the typo tolerance setting to its default value", },
  • The dynamic registration code within the forEach loop that registers the reset-typo-tolerance tool (and others) with the MCP server using the configuration from the array.
    server.tool( name, description, { indexUid: z.string().describe("Unique identifier of the index"), }, async ({ indexUid }) => { try { const response = await apiClient.delete(`/indexes/${indexUid}/settings/${endpoint}`); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );

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