Skip to main content
Glama

set_consumer_denylist

Idempotent

Add or remove a consumer from a tenant-wide denylist so blocked consumers bypass all cross-agent message processing without LLM calls or quota usage.

Instructions

Add or remove a consumer from the tenant-wide denylist. When active, all messages from that consumer are bypassed cross-agent (no LLM, no quota)

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": {
      "consumer_key": "<consumer_key>",
      "blocked": "<blocked>"
    },
    "name": "set_consumer_denylist"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional audit reason; used only when blocked=true
blockedYestrue adds the consumer to the denylist; false removes it
messageNoOptional fixed message returned when the consumer attempts to interact. Empty means a silent acknowledgement (default). Used only when blocked=true.
consumer_keyYesConsumer identity, matching consumer_key in sessions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.2.4
    • changedInput schema / properties / blocked / description
      Previous value: -"true = adiciona ao denylist; false = remove."New value: +"true adds the consumer to the denylist; false removes it"
    • changedInput schema / properties / consumer_key / description
      Previous value: -"Identificador do consumer (mesmo de agent_sessions.consumer_key)."New value: +"Consumer identity, matching consumer_key in sessions"
    • changedInput schema / properties / message / description
      Previous value: -"Mensagem canned opcional a ser entregue ao consumer ao tentar interagir. Vazia = ACK silencioso (default). Apenas usado quando blocked=true."New value: +"Optional fixed message returned when the consumer attempts to interact. Empty means a silent acknowledgement (default). Used only when blocked=true."
    • changedInput schema / properties / reason / description
      Previous value: -"Motivo opcional do bloqueio (audit/telemetria). Apenas usado quando blocked=true."New value: +"Optional audit reason; used only when blocked=true"
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnly=false, destructive=false, idempotent=true and openWorld=false, so the safety profile is covered; the description adds genuinely new behavioral context by disclosing the blast radius ('tenant-wide', 'cross-agent') and the operational effect ('no LLM, no quota'). It still does not say whether the change takes effect immediately on in-flight traffic or what permissions are required to apply a tenant-wide block.

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?

Two sentences, zero filler: the action and scope come first, the consequence second. Nothing is repeated from the schema or annotations, and every clause carries information an agent needs before calling.

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 4-parameter, fully documented schema with no output schema and annotations covering the safety profile, the description supplies the purpose plus the one thing structured fields cannot convey — that the block applies tenant-wide across agents and skips LLM and quota. Missing only secondary details such as effect timing, required permissions, and whether a removed consumer's prior sessions are affected.

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?

Schema description coverage is 100%, so every parameter already carries its own meaning, including the blocked=true/false polarity and the message/reason semantics tied to blocked=true. The description only restates the add/remove polarity that the schema already documents and adds nothing about consumer_key identity matching or the silent-acknowledgement default. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb pair (add/remove) and a specific resource (consumer on the tenant-wide denylist), so the operation is unambiguous and the scope (tenant-wide, not per-agent) is stated. It does not reference any sibling tool, but none of the listed siblings (get_consumer_profile, list_consumer_sessions, set_agent_budget, etc.) overlaps with this resource, so differentiation is mostly implicit rather than stated.

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?

Usage is implied rather than directed: 'When active, all messages from that consumer are bypassed cross-agent' tells the agent the consequence and therefore the situation that calls for it. There is no explicit when-not guidance, no statement of prerequisites or authority needed to flip a tenant-wide switch, and no pointer to a narrower alternative (e.g. per-session controls) for cases where only one conversation should be blocked.

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

Deploy Server

Other Tools