Skip to main content
Glama

Delete a REST controller

deleteRestController
Destructive

Available with Bootify Professional. Delete a custom REST controller by name. Entity-generated controllers are returned by the matching getProject details option with generated=true and must be changed through their entity options.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>",
      "name": "<name>"
    },
    "name": "deleteRestController"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCurrent name of the REST controller
projectIdYesThe project ID returned by startProject

Output Schema

NameRequiredDescriptionDefault
changesYesOnly settings whose values actually changed, including automatic effects, using final stored values in MCP format. Nested objects contain changed properties only. Empty when no settings changed; values that are no longer exposed are omitted.
projectIdYesThe project ID returned by startProject
affectedAreasYesObject lists changed directly or by automatic effects. Lists are not returned; use getProject with these details when needed. Empty for no list changes.
userProjectChangedNoPresent only once when the project appears to have been changed by the user since the preceding MCP call within the last two hours

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / affectedAreas / items / enum
      Previous value: -[
      -  "APP_MODULES",
      -  "ENUMS",
      -  "DATA_OBJECTS",
      -  "ENTITIES",
      -  "RELATIONS",
      -  "INDEXES",
      -  "REST_CONTROLLERS",
      -  "FRONTEND_CONTROLLERS",
      -  "SECURITY_CONFIGS"
      -]New value: +[
      +  "APP_MODULES",
      +  "ENUMS",
      +  "DATA_OBJECTS",
      +  "ENTITIES",
      +  "RELATIONS",
      +  "INDEXES",
      +  "BREAKPOINTS",
      +  "REST_CONTROLLERS",
      +  "FRONTEND_CONTROLLERS",
      +  "SECURITY_CONFIGS"
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered structurally. The description adds genuinely new behavioral context beyond them: a license/plan gate ('Available with Bootify Professional') and the constraint that entity-generated controllers are immutable through this path.

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?

Three compact sentences, no filler. The license note leads and the deletion scope follows, which is reasonable front-loading though the license caveat arguably precedes the core action statement.

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

Completeness4/5

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

An output schema exists, so return values need no explanation, and annotations carry the destructive/idempotency profile. The description covers the two things an agent could get wrong: licensing eligibility and the entity-generated carve-out. Adequate for a two-parameter delete.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters (projectId, name) are already documented in the schema, giving a baseline of 3. The description clarifies that 'name' means the controller's current name and that only custom controllers qualify, but adds no format or lookup detail beyond the schema.

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?

States a specific verb and resource with scope qualifier: 'Delete a custom REST controller by name.' It further narrows the target by excluding entity-generated controllers, which distinguishes it from deleteEntity/updateEntity pathways. It stops short of naming sibling delete tools, but the resource is unambiguous.

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

Usage Guidelines4/5

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

Gives an explicit when-not condition: entity-generated controllers (generated=true) cannot be deleted here and must be changed through their entity options instead. It also flags the Bootify Professional prerequisite, which is real usage guidance. It does not name the exact alternative tool to use.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources