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
| Name | Required | Description | Default |
|---|---|---|---|
| indexUid | Yes | Unique identifier of the index |
Implementation Reference
- src/tools/settings-tools.ts:319-328 (handler)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); } }
- src/tools/settings-tools.ts:316-318 (schema)The input schema for the reset-typo-tolerance tool, requiring the indexUid parameter.{ indexUid: z.string().describe("Unique identifier of the index"), },
- src/tools/settings-tools.ts:294-298 (registration)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", },
- src/tools/settings-tools.ts:313-329 (registration)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); } } );