Skip to main content
Glama
meilisearch

Meilisearch MCP Server

Official
by meilisearch

update-settings

Modify index settings in Meilisearch by specifying the index UID and new configurations to customize search behavior and performance.

Instructions

Update settings for an index

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexUidYes
settingsYes

Implementation Reference

  • MCP tool handler that executes the update-settings logic by calling the settings manager's update_settings method.
    elif name == "update-settings":
        result = self.meili_client.settings.update_settings(
            arguments["indexUid"], arguments["settings"]
        )
        return [
            types.TextContent(
                type="text", text=f"Settings updated: {result}"
            )
        ]
  • Input schema definition for the update-settings tool, specifying indexUid and settings object.
    types.Tool(
        name="update-settings",
        description="Update settings for an index",
        inputSchema={
            "type": "object",
            "properties": {
                "indexUid": {"type": "string"},
                "settings": {
                    "type": "object",
                    "additionalProperties": True,
                },
            },
            "required": ["indexUid", "settings"],
            "additionalProperties": False,
        },
    ),
  • Registration of the update-settings tool in the list_tools handler.
    types.Tool(
        name="update-settings",
        description="Update settings for an index",
        inputSchema={
            "type": "object",
            "properties": {
                "indexUid": {"type": "string"},
                "settings": {
                    "type": "object",
                    "additionalProperties": True,
                },
            },
            "required": ["indexUid", "settings"],
            "additionalProperties": False,
        },
    ),
  • Helper method in SettingsManager that wraps the Meilisearch client's index.update_settings call.
    def update_settings(
        self, index_uid: str, settings: Dict[str, Any]
    ) -> Dict[str, Any]:
        """Update settings for an index"""
        try:
            index = self.client.index(index_uid)
            return index.update_settings(settings)
        except Exception as e:
            raise Exception(f"Failed to update settings: {str(e)}")
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool updates settings, implying a mutation, but fails to mention permissions required, whether changes are reversible, rate limits, or what the response looks like. This leaves significant gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. It is appropriately sized and front-loaded, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a mutation tool with no annotations, 0% schema coverage, and no output schema, the description is incomplete. It lacks details on behavior, parameters, and expected outcomes, making it inadequate for safe and effective use by an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for undocumented parameters. It only mentions 'settings for an index' without explaining what 'indexUid' or 'settings' entail, their formats, or valid values. This adds minimal value beyond the schema's structure.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Update') and resource ('settings for an index'), making the purpose understandable. However, it doesn't differentiate from sibling tools like 'update-connection-settings' or 'get-settings', which would require more specificity for a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives such as 'get-settings' (for reading) or 'update-connection-settings' (for a different type of update). The description lacks context about prerequisites, exclusions, or typical use cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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/meilisearch/meilisearch-mcp'

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