Skip to main content
Glama

remove_plugin

Remove a plugin from a BackGen project, deleting its source files, dependencies, and configuration while preserving user-owned files. Use to undo plugin installation, switch auth providers, or clean up unused features.

Instructions

Removes a previously installed plugin from a BackGen-generated project. This is a destructive but safe operation: it deletes plugin-owned source files (controllers, routes, middleware), removes npm dependencies, strips injected environment variables from .env, reverts route registrations in app.ts, and removes the plugin entry from .backgenrc.json. User-owned files are never touched. Only files that the plugin originally installed are affected. Use this to undo an add_plugin command, switch auth providers (e.g. jwt → clerk), or clean up unused features. Run doctor afterwards to verify the project is healthy after removal. Run list_plugins first to see what's currently installed. Use add_plugin if you want to install (not remove) a plugin.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pluginYesPlugin to remove. Categories: auth (jwt, clerk — mutually exclusive, safe to swap by removing one then adding the other), payment (stripe), storage (s3), production (ratelimit), devops (ci-github, dependabot, codeql, docker-registry, release — remove all with 'backgen remove devops' shorthand). Use list_plugins first to see which plugins are currently installed in the project.
dirNoAbsolute or relative path to the existing BackGen-generated project directory. Defaults to the current working directory. Must be a valid BackGen project with a .backgenrc.json manifest. Example: '/home/user/projects/my-api'.
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: it details exactly what is deleted (files, npm deps, env vars, route registrations, .backgenrc.json entry) and what is safe (user-owned files untouched). Clearly labels it as destructive but safe.

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

Conciseness4/5

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

The description is comprehensive but slightly lengthy. However, it is well-structured with front-loaded action, then details, then usage context. Each sentence adds value, no wasted words.

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

Completeness5/5

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

Given no output schema, the description explains all behavioral effects, parameter semantics, and provides post-removal guidance (use doctor). Complete for a destructive tool with two parameters and no output.

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

Parameters5/5

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

Schema coverage is 100%, but description adds significant value: explains plugin categories, mutual exclusivity between jwt/clerk, removes all with shorthand, gives an example for dir, and clarifies project validity requirements.

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

Purpose5/5

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

The description clearly states the tool removes a plugin from a BackGen project, listing specific actions (deletes files, dependencies, env vars) and distinguishes itself from siblings like add_plugin and list_plugins.

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

Usage Guidelines5/5

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

Explicitly describes when to use (undo add_plugin, switch auth providers, clean up features) and provides pre/post steps (run list_plugins first, run doctor after). Clearly recommends add_plugin as alternative for installation.

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

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/IbrahimKhaled19/BackGen'

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