Skip to main content
Glama

Attach service DNS record

attach_service_dns_record
Destructive

Creates an A, AAAA, or CNAME record in an owned forward DNS zone to point a DNS name at a service using the service's IP.

Instructions

Point a DNS name at a service in one call: creates an A/AAAA/CNAME record in an owned forward DNS zone using the service's own IP (A/AAAA default to the service IP when ip is omitted; the ip, when given, must belong to the service). Not for secondary/suspended zones. For arbitrary record content use upsert_dns_record instead. Requires dns:write when using an API key.

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": {
      "orderNo": "<orderNo>",
      "zone_id": "<zone_id>",
      "name": "<name>",
      "type": "<type>"
    },
    "name": "attach_service_dns_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNoOptional service IP for A/AAAA; defaults to the service's first matching IP
ttlNoTTL in seconds (default 120)
nameYesRecord name inside the zone, e.g. 'www' or '@' for the apex
typeYesRecord type
targetNoCNAME target hostname (required when type=CNAME)
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
zone_idYesOwned forward DNS zone ID from list_dns_zones

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the safety profile is covered. The description adds meaningful non-annotation context: the record is populated from the service's own IP by default, a supplied ip must belong to the service, and the dns:write scope is required. It does not spell out what happens to a pre-existing record at the same name, which is why it is a 4 rather than 5.

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 action, then constraints, then the alternative, then auth. Dense but every clause carries information; the only mild cost is a long first sentence with nested parentheticals.

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?

With no output schema and a mutation tool, the description supplies zone restrictions, defaulting behavior, the alternative tool, and the required scope, which is enough to invoke correctly. It stops short of describing the failure/overwrite semantics an agent might want for a destructive create.

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%, so a baseline of 3 applies. The description goes beyond the schema by explaining that A/AAAA default to the service IP and that any supplied ip must belong to the service, plus framing the type choice (A/AAAA vs CNAME target) as a single decision.

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 concrete verb+resource ('creates an A/AAAA/CNAME record in an owned forward DNS zone') and immediately distinguishes it from the sibling upsert_dns_record, which handles arbitrary content. An agent can identify the tool's scope without opening the 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 exclusions ('Not for secondary/suspended zones'), an explicit alternative ('For arbitrary record content use upsert_dns_record instead'), and a prerequisite ('Requires dns:write when using an API key'). Covers when to use, when not to, and what else to use.

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