Skip to main content
Glama

setup_install_polkit_rule

Install or remove a Linux polkit rule that auto-approves dependency installation prompts for whitelisted tools, requiring only one password entry for setup. Thereafter, installs run silently.

Instructions

Install or remove the Linux polkit auto-approve rule that lets install_dependency run without prompts. CRITICAL ONE-TIME SETUP for the agent-native install flow on a fresh machine: triggers a single pkexec password prompt for THIS call (the user types their password once); thereafter every install_dependency call for a whitelisted tool (wtype/ydotool/wl-clipboard/xdotool/ffmpeg) runs prompt-free. Uses subject.active so the rule applies to any logged-in user on the machine (not hardcoded to a single account). Linux only — returns 501 on macOS/Windows.

Recommended flow:

  1. run_diagnostics — see if install_polkit_rule check is warning

  2. setup_install_polkit_rule({enable: true}) — user types password once

  3. install_dependency({tool: "wtype"}) — silent install, no prompt

Pass enable=false to remove the rule (also triggers a polkit prompt).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
enableYestrue to install the rule, false to remove it.
Behavior5/5

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

With no annotations, the description fully discloses behavior: triggers a single pkexec prompt for this call, after which install_dependency runs without prompts; uses subject.active for all users; removal also triggers a prompt. No hidden side effects.

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?

The description is concise yet comprehensive, front-loading the critical purpose and criticality. The recommended flow is clearly formatted as a bullet list, and every sentence adds necessary context without redundancy.

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

Completeness5/5

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

Given the single boolean parameter and no output schema, the description covers all needed context: purpose, usage, platform restriction, dependency on user interaction, and side effects for both enable true and false. No gaps remain.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema already describes the boolean 'enable' parameter with good coverage. Description adds value by explaining the behavioral difference between true and false (install vs remove, each triggering a prompt), surpassing the schema's basic description.

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?

The description clearly states the tool installs or removes a Linux polkit auto-approve rule, distinct from siblings like install_dependency. It specifies the resource (polkit rule) and action (install/remove), and notes Linux-only with a 501 error on other platforms.

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?

Provides an explicit recommended flow (run_diagnostics → this tool → install_dependency) and explains when to pass enable=false. Also states Linux-only, guiding the agent not to invoke on macOS/Windows.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sneakyfree/windy-word-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server