Skip to main content
Glama

block_ip

Block an IP address at the Hostkey network level to handle abuse requests. Optionally set automatic unblock after 4 hours and specify a reason.

Instructions

Block an IP address on the server at the Hostkey network level (net/block_ip). Useful for abuse requests.

Input Schema

NameRequiredDescriptionDefault
idYesServer ID
ipYesIP address
confirmYesMust be true to run the operation.
four_hoursNotrue — block is automatically lifted after 4 hours
descriptionYesBlock reason

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.3
    • changedInput schema / properties / description / description
      Previous value: -"Причина блокировки"New value: +"Block reason"
    • changedInput schema / properties / four_hours / description
      Previous value: -"true — блокировка автоматически снимется через 4 часа"New value: +"true — block is automatically lifted after 4 hours"
    • changedInput schema / properties / id / description
      Previous value: -"ID сервера"New value: +"Server ID"
    • changedInput schema / properties / ip / description
      Previous value: -"IP-адрес"New value: +"IP address"
  2. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is partly covered. The description adds the network-level scope and abuse-request framing, but says nothing about reversibility (the four_hours auto-lift and unblock_ip are left undisclosed) or permission requirements. With annotations doing part of the work, this is adequate but not rich.

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 tight sentence with the core action front-loaded, plus a short 'useful for' clause. Nothing is wasted, though the parenthetical API path is marginal 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, fully-schema-documented mutation with no output schema, the description covers the core action and safety is partly carried by annotations. However it omits how the block is reversed (four_hours expiry / unblock_ip) and any permission or side-effect context, leaving meaningful gaps for a state-changing operation.

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 all five parameters (id, ip, description, confirm, four_hours) are documented in the schema itself. The description adds no parameter-level meaning such as the effect of four_hours or the confirm gate, so the 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?

States a specific verb+resource ('Block an IP address on the server') and adds the network layer ('Hostkey network level'), so the operation is unambiguous. It does not explicitly contrast itself with the sibling unblock_ip, so an agent has to infer the pairing rather than being routed to it.

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?

'Useful for abuse requests' gives an implied context for when the tool applies, but does not name unblock_ip as the inverse operation, nor state any exclusions or prerequisites (e.g. needing the server id and a reason). Usage is implied rather than spelled out.

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