storage

Read or modify browser storage in a tab.

Server Nextjs Agent zohaib3249/nextjs-agent-mcp
Category Write
Risk class Medium
Parameters 00 required

What storage does on Nextjs Agent

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

Why storage needs a policy

This tool permits modification of browser-side persistent data. While the changes are reversible (storage can be cleared or reset), an AI agent could inject malicious session tokens, modify authentication state, or inject data that alters application behavior. This is a Write operation rather than Destructive because the data is not permanently deleted—it is modified and could theoretically be reverted.

From the tool's definition Tool description states 'Read or modify browser storage in a tab' — the word 'modify' indicates write capability. Browser storage (localStorage, sessionStorage, cookies) can be altered reversibly.

Questions about storage

What does the storage tool do? +

Read or modify browser storage in a tab. It is categorised as a Write tool in the Nextjs Agent MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on storage? +

Register the Nextjs Agent MCP server in PolicyLayer and add a rule for storage: 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 Nextjs Agent. Nothing to install.

What risk level is storage? +

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

Can I rate-limit storage? +

Yes. Add a rate_limit block to the storage 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 storage completely? +

Set action: deny in the PolicyLayer policy for storage. 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 storage? +

storage is provided by the Nextjs Agent MCP server (zohaib3249/nextjs-agent-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// THE FULL RECORD

storage is one line of Nextjs Agent's registry record.

The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

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.