Skip to main content
Glama

Disable the app portal

portal_disable
Idempotent

Disable the home portal to close portal and route listeners while preserving app services, grants, retained identities, and enrolled local node state.

Instructions

Disable the home portal. With gateway mode on, HTTP MCP also requires the current portal owner, checked in the registry write transaction; other callers receive access_request_owner_required. App services, grants, retained owner/admin identities and enrolled local node state remain. The running daemon closes the portal and route listeners. No remote device deletion or invites.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "portal_disable"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
urlNo
errorNo
stateYes
enabledYes
gatewayNo
messageNo
hostnameNo
owner_revokedNoRecorded owner that stays revoked; restore with portal enable naming that owner.
owner_restoredNoOwner login whose revocation this enable cleared, because the call named that owner.
unavailable_appsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • addedOutput schema / properties / owner_restored
      Added value: +{
      +  "description": "Owner login whose revocation this enable cleared, because the call named that owner.",
      +  "type": "string"
      +}
    • addedOutput schema / 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 / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / unavailable_apps
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false and idempotentHint=true, so the safety profile is partly covered. The description goes well beyond them by enumerating retained state (app services, grants, owner/admin identities, enrolled local node state) and the concrete side effect that the running daemon closes the portal and route listeners. This is the kind of consequence detail annotations cannot express.

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?

Front-loads the action in four words, then layers prerequisites, retained state, and side effects in short declarative sentences. The gateway-mode sentence is dense and carries an internal implementation reference ('checked in the registry write transaction') that borders on noise for a caller, but no sentence is filler.

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?

For a zero-parameter, non-destructive, idempotent mutation with an output schema already covering return values, the description supplies everything an agent needs: the effect on the running daemon, the surviving state, the auth precondition and its error code, and the operations it does not perform.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline of 4 would normally apply. However, the description's only parameter-adjacent content is the caller-identity precondition for gateway mode, which is an implicit input the schema does not model; that is useful but not parameter documentation, so a 3 reflects no added semantic value over the empty schema.

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?

States a specific verb and resource ('Disable the home portal') and immediately scopes the meaning by listing what survives the operation, which implicitly distinguishes it from destructive teardown tools and from portal_enable. An agent can tell exactly what this call changes without opening any schema.

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 a real precondition: with gateway mode on, HTTP MCP callers must be the current portal owner or they receive access_request_owner_required. It also states what the call does NOT do ('No remote device deletion or invites'), which functions as an exclusion. It stops short of explicitly routing the agent to portal_enable or another sibling for the inverse operation.

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