Skip to main content
Glama

Configure app request limits

limits_set
Idempotent

Change one app's HTTP request limits (body size, header, read, and idle timeouts) in a single registry transaction; the app's node restarts to apply them.

Instructions

Change only one app's HTTP request limits in a single registry transaction. Keeps target, access, routes, health, preserve_host, the guest gate and the enrolled node; works on apps with guest links, where add is refused. The app's node restarts to apply new limits: open connections and in-flight uploads end and guests must reopen their link. The call returns before the restart; a written change reports node_restarting true, so check url or status before telling anyone to retry. Omitted fields keep their stored value; an empty string returns that limit to its default (32MiB body, 10s header, 30s read, 60s idle). max_body unlimited requires unlimited_ack true. HTTP MCP requires the current portal owner for a routed app, checked in the write transaction. Owner scope only. Over HTTP MCP, a change to a public app (open Funnel, a lapsed Funnel that keeps its public acknowledgement, or guest links), including one that makes an app public or removes it, needs the current portal owner when one is configured or a home gateway is on, checked in the write transaction (access_request_owner_required).

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": "limits_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes
max_bodyNoSize such as 4GiB, or unlimited; empty means the 32MiB default.
idle_timeoutNoKeep-alive idle duration; empty means 60s.
read_timeoutNoBody inactivity duration; empty means 30s.
unlimited_ackNoAcknowledge max_body unlimited.
header_timeoutNoDuration; empty means 10s.

Output Schema

NameRequiredDescriptionDefault
appYes
changedYes
messageNo
request_limitsYes
node_restartingYesTrue when the change was written and the daemon is running: the app's node restarts, guests must reopen their link; check url or status before asking anyone to retry. False with no daemon running (the limits apply when it starts).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

Very rich beyond the annotations: it discloses that the app's node restarts, open connections and in-flight uploads end, guests must reopen their link, and the call returns before the restart with node_restarting true so callers should check url or status. It also states omitted fields keep stored values and empty strings reset to documented defaults. The only tension is that destructiveHint=false coexists with dropped connections and in-flight uploads being terminated, but that is transient operational impact rather than data destruction, and the description makes the impact explicit rather than hiding it.

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

Conciseness3/5

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

Front-loaded with the core action and the restart consequence, which is the right ordering, but the final sentence is a bloated run-on that restates the owner requirement and repeats 'checked in the write transaction' twice, and the owner rule is also introduced in an earlier sentence. Trimming would sharpen it without losing information.

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?

Covers auth requirements, mutation side effects, defaults, and the pre-restart return behavior for a mutation tool with an output schema, so an agent has what it needs to call it safely. The duplication of the owner rule suggests some organization could be improved, but nothing essential is missing.

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 83%, but the description goes well beyond it by giving the actual default values for each timeout (32MiB body, 10s header, 30s read, 60s idle), explaining the empty-string reset semantics, and stating the cross-parameter constraint that max_body unlimited requires unlimited_ack true.

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 with explicit scope: 'Change only one app's HTTP request limits in a single registry transaction.' It also distinguishes itself from the sibling 'add' by noting it works on apps with guest links where add is refused, so an agent can route correctly without opening other schemas.

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 concrete applicability context: owner scope only, works on guest-link apps where add is refused, and HTTP MCP use requires the current portal owner for routed or public apps. It does not name a sibling alternative for the non-guest-link case, but the when-to-use conditions are clear.

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