Skip to main content
Glama

Apply learned app routes and rate limit

gate_update_app
Destructive

Apply stored learning suggestions to an existing app and return the applied routes, suggested per-minute limit and learning-session metadata. Review gate_learn_suggestions first, then explicitly confirm; requires the project owner key or an admin member key. mode="extend" adds learned routes (default); "replace" removes existing routes before applying them. Both modes set the learned rate limit and keep the app key. Only learned suggestions can be applied: arbitrary routes or rate limits are not accepted, and this tool never starts learning.

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": {
      "project_id": "<project_id>",
      "admin_key": "<admin_key>",
      "app": "<app>",
      "confirm": "<confirm>"
    },
    "name": "gate_update_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app id (app_...) with stored learning suggestions
modeNoExtend existing routes (default), or replace them with learned routes; both set the suggested rate limit
confirmYesExplicit confirmation to apply the reviewed learning suggestions
admin_keyYesThe project owner key (ga_...) or an accepted admin member key (gm_...). Read it from the .env; never print it.
project_idYesThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"The project id from gate_create_project, e.g. p1a2b3..."New value: +"The project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3..."
  2. First observed

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description adds the specific destruction semantics: "replace" removes existing routes before applying, while both modes set the learned rate limit and preserve the app key. It also discloses auth requirements (owner key or admin member key) and what is returned. Slightly short of full marks only because it does not quantify rate-limit or route-count limits.

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

Conciseness5/5

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

Four dense sentences, front-loaded with purpose followed by workflow, mode semantics, and hard constraints. No filler or restatement of the title, and every clause carries decision-relevant information.

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 destructive, credential-gated mutation with no output schema, the description covers return values, auth, prerequisite ordering, mode effects, and rejection behavior. An agent has everything needed to decide whether and how to call it.

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%, so the baseline would be 3, but the description adds outcome-level meaning: mode=extend adds routes and is the default, mode=replace deletes existing routes first, and both modes apply the suggested rate limit while keeping the app key. It also frames confirm as the explicit human-in-the-loop gate rather than a mere boolean.

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 precise verb+resource: applies stored learning suggestions to an existing app, and returns applied routes, suggested per-minute limit and learning-session metadata. It clearly separates itself from gate_learn_suggestions, which is named as the review step rather than the apply step.

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 prescribes the sequence (review gate_learn_suggestions first, then confirm) and names the required credential. It also states exclusions: only learned suggestions can be applied, arbitrary routes or limits are rejected, and the tool never starts learning.

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