Skip to main content
Glama

Check a host against AdGuard filters

adguard_check_host
Read-onlyIdempotent

Check whether AdGuard Home would filter a domain and identify the matching rule and filter list without sending a DNS query.

Instructions

Check whether AdGuard Home would filter a domain, and by which rule and list.

Calls GET /control/filtering/check_host?name=<name> on the AdGuard Home add-on and resolves each matched rule's filter_list_id to the list name from filtering/status (0 = custom rules, negative ids = built-in sources such as blocked services or safe browsing). Sends no DNS query and changes nothing.

Use when: explaining why a domain is blocked or allowed. Not for: the full filtering setup — use adguard_get_config. Returns: AdGuard's answer (reason, rules, service_name, cname, ip_addrs) plus name, blocked (true when reason starts with Filtered) and filter_name on each rule. Errors: invalid_name for an empty or malformed domain; the add-on lookup errors of adguard_get_config.

Input Schema

NameRequiredDescriptionDefault
nameYesDomain name to check, e.g. `ads.example.com` (no scheme, path or port).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.28.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, but the description still adds useful context beyond them: it states no DNS query is sent and nothing changes, documents the upstream endpoint, explains how filter_list_id is resolved (0 = custom rules, negatives = built-in sources), and names the error codes. This is richer than a pure read-only declaration.

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 core answer, then structured into endpoint, usage, returns, and errors sections — each sentence earns its place. It is on the longer side, but the labeled blocks make it scannable rather than padded.

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?

Covers what it does, how (upstream endpoint), what it returns (including the derived `blocked` and `filter_name` fields), and the failure modes. Output schema existence means the return explanation is a bonus rather than a necessity, and the error section is a genuine addition.

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 100% and the single parameter's format (no scheme, path or port) is already documented there, so the baseline is 3. The description adds value by tying the parameter to an error condition ('invalid_name' for empty or malformed domain), giving the agent a validation expectation the schema does not.

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 and resource ('check whether AdGuard Home would filter a domain') and immediately differentiates itself from the sibling adguard_get_config by naming it as the wrong tool for full filtering setup. The agent can distinguish this from adguard_add_filter, adguard_remove_filter, and adguard_set_filter_enabled without opening any schema.

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?

Explicit 'Use when: explaining why a domain is blocked or allowed' and 'Not for: the full filtering setup — use adguard_get_config' give both the inclusion and exclusion criteria plus the alternative. Nothing is left to inference.

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