Skip to main content
Glama

mcp_blacklist_add

Add a blacklist entry to block MCP targets, capabilities, or tools by protocol, adapter ID, or name/glob pattern from discovery and invocation.

Instructions

Add a blacklist entry. kind=target (default): protocol + host+port or network url; blocks mcp_add, discovery register and invoke on matching adapters. kind=capability: adapterId (protocol:name); hides and blocks that one instance. kind=tool: pattern (exact tool name or glob, * = one segment, ** = any, e.g. redis.*.flushall); hides and blocks matching tools. Blacklist still applies in Full mode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoNetwork URL; file paths are ignored
hostNo
kindNo
portNo
reasonNo
patternNokind=tool: tool name or glob
protocolNo
adapterIdNokind=capability: registration id protocol:name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With readOnlyHint=false the annotation already signals a write, and the description adds real behavioral context: it names exactly what gets blocked (mcp_add, discovery register, invoke) and notes that blacklisting 'still applies in Full mode', which is non-obvious policy detail. It omits reversibility and auth requirements, but disclosure is well beyond annotation coverage.

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-loaded with the verb and resource, then the three modes follow in compact clauses. It is dense but nearly every clause carries distinct meaning; minor redundancy in restating that each mode both hides and blocks.

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 an 8-parameter mutation tool with no output schema, the description covers the essential semantics (mode selection and pattern syntax) needed to invoke it correctly. It stops short of covering the reason field or any return/confirmation behavior, but annotations already carry the safety profile.

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 coverage is only 38%, so the description must compensate, and it does: it maps host+port/url to target, adapterId (protocol:name) to capability, and pattern to tool, plus it documents glob syntax (* = one segment, ** = any) not present in the schema. Only the reason parameter is left unexplained, keeping it just shy of full coverage.

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 (Add) and resource (blacklist entry), then enumerates the three operational modes (target, capability, tool) with their distinct targets. An agent can distinguish this from siblings like mcp_blacklist_remove or mcp_remove purely from the description.

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?

The description effectively routes within the tool by explaining what each kind does (kind=target for protocol+host/port or url, kind=capability for adapterId, kind=tool for glob patterns), which tells the agent when to pick each mode. It lacks explicit guidance on when to use this tool versus alternatives like mcp_remove, so no exclusions are stated.

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