Skip to main content
Glama

apps.protection.configure

Replace an application's additive blocking rules using its current revision. Set disabled to disable a rule, omit a saved rule to delete it, or supply an empty list to remove all app rules. Global rules still apply.

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_id": "<app_id>",
      "revision": "<revision>",
      "rules": "<rules>"
    },
    "name": "apps.protection.configure"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesYescomplete replacement list; advanced_v1 rules contain 1-8 ANDed typed conditions and block only. Parsed body fields exclude file contents. Omit IDs for new rules
app_idYeslogical application ID
revisionYescurrent policy revision; prevents overwriting concurrent changes
organization_idNoorganization membership to use for this call; omit only when the account has one current membership

Output Schema

NameRequiredDescriptionDefault
rulesYes
enabledNo
revisionYes
enforcementYes
verified_atNo
failure_codeNo
managed_rulesetYes
max_request_body_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior1/5

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

The description clearly describes destructive behavior: replacing the rule list, deleting saved rules by omission, and removing all app rules with an empty list. This directly contradicts the supplied destructiveHint=false annotation, so the behavioral transparency is misleading despite the useful note that global rules still apply.

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?

The description is three tightly written sentences with no wasted wording. The main replacement action is front-loaded, followed by the rule-editing semantics and the global-rules caveat.

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?

For a four-parameter mutation tool with full schema description coverage and an output schema, the description covers the important rule-replacement semantics and the scope of global rules. It does not mention every schema detail, such as advanced_v1 condition structure, but that is appropriately left to the schema.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema by explaining the replace/disable/omit/empty-list behavior for the rules parameter and by tying the revision parameter to using the current policy revision.

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 states a specific verb and resource: 'Replace an application's additive blocking rules using its current revision.' It also distinguishes application-level rules from global rules that still apply, so the agent can tell this apart from platform-level protection configuration.

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

Usage Guidelines3/5

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

It explains how to disable a rule, delete a saved rule by omission, and remove all app rules with an empty list. However, it gives no explicit guidance on when to use this tool versus apps.protection.get, apps.protection.events, or platform.protection.configure.

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