Generate API route handlers for Next.js or Express that use the Kalendis backend client
AI agents use generate-api-routes to create or update resources in Kalendis MCP — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Kalendis MCP environment.
This tool creates new files/code (API routes) in a reversible manner—generated code can be edited, deleted, or regenerated. It does not execute those routes, delete data, move money, or trigger external operations with uncontrolled side effects. While code generation carries some risk if misused (e.g., overwriting existing routes), the primary action is Write (creation/modification of project files).
From the tool's definition Tool 'generate-api-routes' creates API route handlers for Next.js or Express frameworks. The description indicates it generates code artifacts that are written to the project, modifying the codebase.
Attacks that exploit this kind of access
Generate API route handlers for Next.js or Express that use the Kalendis backend client. It is categorised as a Write tool in the Kalendis MCP MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Kalendis MCP server in PolicyLayer and add a rule for generate-api-routes: 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 Kalendis MCP. Nothing to install.
generate-api-routes is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the generate-api-routes 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.
Set action: deny in the PolicyLayer policy for generate-api-routes. 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.
generate-api-routes is provided by the Kalendis MCP server (kalendis-dev/kalendis-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the 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 →