Skip to main content
Glama

set_primary_allocation

Idempotent

Set a network allocation as the primary/default address for a Pterodactyl-hosted server so agents and users can target the correct server endpoint.

Instructions

Set a network allocation as the primary/default server address.

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": {
      "server_id": "<server_id>",
      "allocation_id": "<allocation_id>"
    },
    "name": "set_primary_allocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
server_idYesShort server identifier
allocation_idYesNumeric allocation ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, so the write/repeat behavior is covered structurally. The description adds only the notion of "default/primary" and says nothing about side effects: whether the old primary is demoted, whether a restart is required, or whether the call fails if the allocation is attached elsewhere.

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?

A single front-loaded sentence with no filler, which is structurally sound. It is perhaps too terse for a state-changing tool, but nothing is redundant.

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-required-parameter mutation with no output schema, the definition is minimally adequate. It omits the operational consequences of changing the primary address, which is the main thing an agent would need before invoking it.

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?

Both parameters are fully documented in the schema (100% coverage), including format hints such as "Short server identifier" and "Numeric allocation ID". The description adds no additional meaning beyond that, which is acceptable given the schema does the work.

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 uses a specific verb ("Set") on a specific resource ("a network allocation") and states the resulting state ("primary/default server address"). That is enough to separate it from create_allocation or update_allocation_notes, though it never names a sibling to reinforce the distinction.

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?

There is no guidance on when to choose this over related allocation tools, no prerequisites (e.g. the allocation must already exist and belong to the server), and no note about what happens to the previously primary allocation. The agent must infer all usage conditions.

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