Skip to main content
Glama
@serversareup/mcp-server

@serversareup/mcp-server

set_hostname

Assign a valid RFC 1123 hostname to a virtual instance, ensuring DNS-compatible naming for the machine.

Instructions

Set the hostname of an instance. Must be RFC 1123 compliant (letters, numbers, hyphens, dots).

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": {
      "id": "<id>",
      "hostname": "<hostname>"
    },
    "name": "set_hostname"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe instance ID
hostnameYesNew hostname (max 64 chars, RFC 1123 format)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses the format constraint but says nothing about side effects: whether the instance must be stopped, whether a reboot or reconfiguration is triggered, whether the change is reversible, or what permissions are needed for a mutating operation.

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?

Two short sentences with no wasted wording, and the action is front-loaded before the constraint. Nothing needs trimming, though the brevity comes at the cost of the missing behavioral detail.

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

Completeness3/5

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

For a simple two-parameter mutation with full schema coverage, the definition is minimally sufficient to call it correctly. With no annotations and no output schema, it should still say what happens on success or failure and whether the change disrupts the instance.

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 description coverage is 100% and both parameters are documented in the schema, including the 64-char and RFC 1123 constraints. The description's format note therefore duplicates rather than extends the schema, so baseline 3 applies.

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?

"Set the hostname of an instance" states a specific verb and resource, so an agent can tell immediately what changes. It does not name or differentiate against any sibling, though no sibling in the list appears to do the same thing, so the risk of confusion is low.

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?

The description gives a clear precondition-style constraint, RFC 1123 compliance, which tells the agent when the call is valid. It does not say when to prefer this over alternatives or mention prerequisites such as instance state or required permissions.

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