Skip to main content
Glama

List DNS records in a zone

lw_record_list
Read-onlyIdempotent

List DNS records in a zone and filter by type or name to inspect TTL, priority, and rdata details; use returned record IDs with update or delete tools.

Instructions

List records in a zone (v1 Network/DNS/Record/list). Returns id, name (fully qualified), type, ttl, prio and rdata. Optional client-side filters by type and name. Use the id with lw_record_update or lw_record_delete. verbose=true returns raw API objects.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lw_record_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOnly this name (relative like "www" or fully qualified; "@" for the apex).
typeNoOnly this record type, e.g. MX.
zoneNoZone name, e.g. "example.com". Give this or zone_id.
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
verboseNoReturn raw API objects instead of the compact summary.
zone_idNoNumeric zone id from lw_zone_list. Give this or zone.
max_itemsNoReturn at most this many items (default LW_MAX_ITEMS, 500). When more remain, the result says truncated and gives next_page if the cut fell on a 100-item page boundary; otherwise raise max_items.
start_pageNoResume from this page (use next_page from a previous call).

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety burden is light. The description still adds real behavior beyond them: filtering is client-side (implying full retrieval then local filtering, relevant to cost and rate limits) and verbose=true switches to raw API objects. It says nothing about result ordering or failure modes, but the additions are substantive.

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?

Four short sentences, front-loaded with purpose and return fields, then filters, then the id workflow, then verbose. Nearly every clause earns its place; the parenthetical API path '(v1 Network/DNS/Record/list)' is debugging noise that does not help an agent select or invoke the tool.

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 8 optional parameters, an output schema, and full schema coverage, the description covers the gaps an agent actually needs: what is returned, that filters are client-side, and how the id feeds update/delete. Pagination/truncation semantics live in the schema, so their absence from the description is acceptable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the schema already documents name, type, verbose, max_items, start_page and the zone/zone_id alternative in more detail than the description. The description adds only the notable point that type/name filters are client-side and that verbose yields raw API objects, which is already stated in the schema for verbose. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List records in a zone') and enumerates the returned fields (id, name, type, ttl, prio, rdata), so an agent knows exactly what it gets back. It does not differentiate from lw_record_details, which is the obvious single-record sibling, so it falls short of a 5.

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 operating context: optional client-side filters by type and name, and the downstream workflow ('Use the id with lw_record_update or lw_record_delete'). It offers no exclusions such as 'use lw_record_details for a single record' or 'use lw_dns_lookup for external resolution', so it stops at clear-context rather than when/when-not.

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