Skip to main content
Glama

delete_allocation

Destructive

Unassigns and deletes a non-primary network allocation from a server, removing an unused IP/port assignment when it is no longer needed.

Instructions

DESTRUCTIVE: Unassign and delete a non-primary network allocation from a server.

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": "delete_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

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's 'DESTRUCTIVE:' prefix is largely redundant. It does add real behavior beyond the annotations: the operation both unassigns (frees the address) and deletes the record, and it is scoped to non-primary allocations only. It says nothing about irreversibility, the error returned if the allocation is primary, or permission requirements.

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?

A single front-loaded sentence with the danger flag first and the scope constraint last; no filler or redundancy.

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?

For a two-required-parameter mutation with full schema coverage, annotations declaring destructiveness, and no output schema to explain, the definition gives enough to call it correctly. The main omission is what happens on failure (e.g., targeting a primary allocation) and whether the action is reversible.

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 carry their own descriptions ('Short server identifier', 'Numeric allocation ID'), so the schema does the work. The description only implies that server_id identifies the server and allocation_id the target allocation, adding no format or validation detail beyond the schema.

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?

Specific verb and resource: 'Unassign and delete a non-primary network allocation from a server.' The 'non-primary' qualifier plus the compound unassign/delete effect distinguishes it from create_allocation and set_primary_allocation without naming them, though no sibling is called out explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'non-primary' restriction implies usage context (the allocation must already exist and must not be the server's primary one), which hints that a primary allocation needs to be re-pointed via set_primary_allocation first. However, no explicit when-to-use, prerequisites, or alternative tool is stated.

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