Skip to main content
Glama

liara_get_dns_record

Retrieve DNS record details by providing zone and record IDs to manage domain configurations on the Liara cloud platform.

Instructions

Get details of a DNS record

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zoneIdYesThe zone ID
recordIdYesThe record ID

Implementation Reference

  • The core handler function that implements retrieving a specific DNS record from a Liara DNS zone via the API. This matches the logic for the 'liara_get_dns_record' tool.
     * Get a specific DNS record
     */
    export async function getRecord(
        client: LiaraClient,
        zoneId: string,
        recordId: string
    ): Promise<DnsRecord> {
        validateRequired(zoneId, 'Zone ID');
        validateRequired(recordId, 'Record ID');
        return await client.get<DnsRecord>(`/v1/zones/${zoneId}/records/${recordId}`);
    }
  • TypeScript interface defining the structure of a DNS record, used as the return type for the get DNS record operation.
    export interface DnsRecord {
        _id: string;
        zoneID: string;
        type: DnsRecordType;
        name: string;
        value: string;
        ttl: number;
        priority?: number;
    }
  • Type definition for supported DNS record types.
    export type DnsRecordType = 'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS' | 'SRV';
  • Input validation helper calls ensuring zoneId and recordId are provided.
    validateRequired(zoneId, 'Zone ID');
    validateRequired(recordId, 'Record ID');
    return await client.get<DnsRecord>(`/v1/zones/${zoneId}/records/${recordId}`);
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Get details' implies a read-only operation, but it doesn't confirm this or address other behaviors like authentication requirements, rate limits, error conditions, or what the response format looks like (e.g., JSON structure). For a tool with zero annotation coverage, this leaves significant gaps in understanding how it behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. It's front-loaded with the core action ('Get details'), making it easy to parse quickly. Every part of the sentence directly contributes to understanding the tool's function.

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?

Given the complexity of a DNS system and the lack of annotations and output schema, the description is insufficient. It doesn't explain what 'details' include, how errors are handled, or any dependencies on other tools. For a read operation in a domain with many related tools, more context is needed to ensure proper use.

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?

The input schema has 100% description coverage, with clear documentation for 'zoneId' and 'recordId'. The description adds no additional meaning beyond implying these are needed to fetch details, which is already evident from the schema. According to the rules, when schema coverage is high (>80%), the baseline score is 3 even without param info in the description.

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?

The description 'Get details of a DNS record' clearly states the verb ('Get') and resource ('DNS record'), making the purpose immediately understandable. However, it doesn't distinguish this tool from its sibling 'liara_get_domain' or 'liara_get_zone' which also retrieve DNS-related information, nor does it specify what 'details' include beyond what might be obvious from the name.

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?

The description provides no guidance on when to use this tool versus alternatives. With siblings like 'liara_list_dns_records' (for listing records) and 'liara_get_domain'/'liara_get_zone' (for related DNS entities), there's no indication of prerequisites, such as needing to know specific IDs from a list operation first, or when this is the appropriate choice over other get operations.

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/razavioo/liara-mcp'

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