Skip to main content
Glama

upsert_dns_block_list

Create or update a DNS block list from an upstream URL or inline domains, with allow overrides; review the change_id and apply the change to activate it.

Instructions

Create or update a DNS block list. Returns a change_id; nothing changes until apply_change.

Args: name: Block list name. upstream: URL to fetch the block list from (e.g., a community hosts file). contents: Inline block list content (domain list). Use instead of upstream. block_list_id: UUID to update existing; omit to create new. override_to_allow: Domains to allow even if on the list.

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": {
      "name": "<name>"
    },
    "name": "upsert_dns_block_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
contentsNo
upstreamNo
block_list_idNo
override_to_allowNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations present the description carries the full burden, and it does disclose the most important behavioral trait: the call returns a change_id and nothing changes until apply_change. However, it never says what happens to existing list entries when contents/upstream are omitted on an update, nor whether the update path is destructive or requires specific permissions.

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 critical constraint (staged change, apply_change required) before the argument list, which is the right ordering. The Args block is efficient and each line adds information; only minor tightening would be possible.

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?

An output schema exists so return values need no further explanation (the change_id mention is a useful bonus, not a redundancy). For a five-parameter mutation tool with zero annotation and zero schema-description coverage, the definition covers inputs and the staged-commit lifecycle well, leaving only update-replace semantics and permission expectations unstated.

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 0%, so the description must compensate, and it documents all five parameters including an example format for upstream and the create/update role of block_list_id. The remaining gap is format ambiguity: it doesn't say whether override_to_allow is a single domain, a comma-separated string, or newline-delimited, which matters for a free-form string field.

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 pair and resource ("Create or update a DNS block list") and immediately clarifies the create-vs-update switch via the block_list_id parameter note. It also names apply_change as the gating sibling, so an agent knows this tool stages rather than commits.

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?

Gives clear conditional guidance for the two mutually exclusive input modes ("contents: ... Use instead of upstream") and explains that the operation is provisional until apply_change is called. It does not address when to prefer this over list_dns_block_lists or delete_dns_block_list, but those are obvious CRUD distinctions.

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