Skip to main content
Glama

Remove a gateway route

portal_route_remove
DestructiveIdempotent

Remove an app's gateway route; portal-only apps are rejected—remove the app instead. The current portal owner must authorize the write.

Instructions

Remove an app's gateway route. Refuses portal-only apps; remove the app instead. HTTP MCP requires the current portal owner in the write transaction.

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": {
      "app": "<app>"
    },
    "name": "portal_route_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes

Output Schema

NameRequiredDescriptionDefault
portalYes
routesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • addedOutput schema / properties / portal / properties / owner_restored
      Added value: +{
      +  "description": "Owner login whose revocation this enable cleared, because the call named that owner.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / portal / properties / owner_revoked
      Added value: +{
      +  "description": "Recorded owner that stays revoked; restore with portal enable naming that owner.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv0.3.0
    • addedOutput schema / properties / portal / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / portal / properties / unavailable_apps
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this as destructive, non-read-only and idempotent. The description adds meaningful behavioral context beyond them: portal-only apps are rejected, and HTTP MCP writes require the current portal owner in the transaction.

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 front-loaded with the action and is only three sentences long. The phrase "HTTP MCP requires the current portal owner in the write transaction" is useful but somewhat jargon-heavy without further explanation.

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

Completeness3/5

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

For a destructive mutation with an output schema and annotations, the description covers refusal behavior and an authentication precondition. However, it leaves the app identifier format and the practical effect of removing a gateway route unclear, which matters for a destructive operation.

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

Parameters2/5

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

The sole parameter, "app", has 0% schema description coverage, so the description must carry the burden of explaining its meaning. It identifies the target as an app but does not clarify whether the value is a name, ID, domain, or other identifier format.

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 uses a specific verb and resource: "Remove an app's gateway route." It clearly distinguishes the operation from portal_route_add and portal_route_list, and the portal-only exclusion further narrows the purpose.

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?

It provides a clear usage constraint: portal-only apps are refused and the app should be removed instead. It does not explicitly compare against every sibling such as portal_disable or app_restart, but the relevant alternative for portal-only apps is named.

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