create-index

Create an index on a collection

Server Mongodb3 mongodb3-mcp-server
Category Write
Risk class Medium
Parameters 00 required

What create-index does on Mongodb3

AI agents use create-index to create or update resources in Mongodb3 — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Mongodb3 environment.

Why create-index needs a policy

Creating an index modifies the collection's metadata and storage structure, making it a Write operation. While indexes can be dropped (reversible), creating them impacts database performance and structure. Severity is medium because index creation on large collections can be resource-intensive and affect query performance, but it is not destructive and does not cause data loss.

From the tool's definition Tool name 'create-index' and description 'Create an index on a collection' indicate this tool creates/modifies database metadata (indexes) which is a reversible operation.

Questions about create-index

What does the create-index tool do? +

Create an index on a collection. It is categorised as a Write tool in the Mongodb3 MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on create-index? +

Register the Mongodb3 MCP server in PolicyLayer and add a rule for create-index: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Mongodb3. Nothing to install.

What risk level is create-index? +

create-index is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit create-index? +

Yes. Add a rate_limit block to the create-index rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block create-index completely? +

Set action: deny in the PolicyLayer policy for create-index. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides create-index? +

create-index is provided by the Mongodb3 MCP server (mongodb3-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.