Skip to main content
Glama

block_program

DestructiveIdempotent

Blocks a program from network access on Windows via firewall rules, isolating specific applications; on Linux it refuses, so use connection-level blocking instead.

Instructions

Blocks a program from the network on Windows (firewall rules that unblock_program removes). On Linux it always refuses, so do not call it there: Linux firewalls filter by address, port and user rather than by program. close_connection cuts a single connection instead.

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": {
      "path": "<path>"
    },
    "name": "block_program"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe program's full path (get_process gives it).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered; the description adds the valuable extra facts that the effect is reversible via unblock_program and that the call is a guaranteed no-op/refusal on Linux. It does not mention elevated-privilege requirements for firewall rule changes, which is the one meaningful behavioral gap.

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?

Three short sentences, each earning its place: capability first, platform restriction and rationale second, disambiguation last. No filler and the key constraint is front-loaded.

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 one-parameter mutation with no output schema and full annotation coverage, the description supplies everything an agent needs to select and invoke it correctly, including platform eligibility and reversibility. Missing only privilege/escalation expectations, which is a minor gap for a firewall-modifying tool.

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 coverage is 100% and the schema itself documents that 'path' is the program's full path obtainable from get_process, so the description need not repeat it. The description adds no further semantics about the single parameter, which matches the baseline for a fully documented schema.

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

Purpose5/5

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

States a specific verb and resource ('Blocks a program from the network') plus the exact platform scope (Windows firewall rules), and pairs it with its inverse sibling 'unblock_program removes' so the agent immediately sees the counterpart tool. It is clearly distinguishable from close_connection and the process-management siblings.

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

Usage Guidelines5/5

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

Explicitly says not to call it on Linux and explains why ('Linux firewalls filter by address, port and user rather than by program'), which is a genuine exclusion rather than an implied one. It also routes the agent to the correct alternative for narrower needs: 'close_connection cuts a single connection instead.'

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