Skip to main content
Glama

add_domain

Add a domain to Pi-hole's allow or deny list by specifying domain, type (allow/deny), kind (exact/regex), and optional comment.

Instructions

Add a domain to the allow or deny list.

domain: the domain or regex pattern to add. type: "allow" (whitelist) or "deny" (blacklist). kind: "exact" (exact domain match) or "regex" (regular expression). comment: optional description.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYes
typeNodeny
kindNoexact
commentNo
Behavior2/5

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

The description does not disclose behavioral traits such as whether the operation is idempotent, requires authentication, or affects existing entries. With no annotations provided, the description carries full burden but fails to provide essential behavioral context beyond parameter explanations.

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?

The description is concise with a clear first sentence summarizing purpose, followed by a structured list of parameters. No extraneous details, though the bullet format could be integrated more naturally.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no output schema, the description does not explain return values, error conditions, or side effects (e.g., whether duplicate domains are ignored or cause errors). For a mutation tool, these omissions diminish completeness.

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?

The input schema has 0% description coverage, but the tool description adds meaning for all four parameters: 'domain: the domain or regex pattern to add,' 'type: allow or deny,' 'kind: exact or regex,' and 'comment: optional description.' This compensates well for the schema deficit.

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 clearly states 'Add a domain to the allow or deny list,' which specifies the verb (add), resource (domain), and context (allow/deny list). It effectively distinguishes from sibling tools like 'add_list' (which adds a list, not a domain).

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives such as 'add_list' (for adding a full list) or 'remove_domain' (for removal). The description does not provide context for when an agent should choose this tool over siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/obrien-matthew/mcp-pihole'

If you have feedback or need assistance with the MCP directory API, please join our Discord server