Skip to main content
Glama

update_device_hosts

Updates the hosts file entries for a 1Panel-managed device, enabling administrators to change local hostname-to-IP mappings and resolve hostnames correctly.

Instructions

Update device hosts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

D1.5/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses nothing: not what 'hosts' represents, whether the update is destructive/overwriting, what permissions are needed, or whether the change is reversible.

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

Conciseness2/5

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

The description is extremely short, but this is under-specification rather than effective conciseness. It wastes the opportunity to front-load any meaningful detail about the operation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with zero annotation coverage, one undocumented required parameter, and no output schema, the description is completely inadequate. An agent has no basis to invoke this tool correctly.

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

Parameters1/5

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

Schema description coverage is 0% and the description adds no meaning. The single required parameter 'hosts' is a bare string with no explanation of format, expected syntax, or whether it replaces the whole hosts file.

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

Purpose2/5

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

The description 'Update device hosts' essentially restates the tool name verbatim, adding no distinguishing information. It does not clarify whether it edits /etc/hosts entries, DNS records, or host configurations, nor how it differs from siblings like update_device, update_device_by_file, or update_host.

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?

No when-to-use guidance, prerequisites, or alternatives are given. The agent cannot tell from the description when this tool is appropriate versus update_device, update_host, or update_device_by_file.

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