Skip to main content
Glama
kuhyx

i3wm-mcp

Inspect i3 Configuration

get_config
Read-onlyIdempotent

Inspect the i3/Sway configuration state: version, compositor type, loaded config path, and binding modes. Optionally include the full config text.

Instructions

Inspect i3/Sway configuration state in one call: version, whether the compositor is Sway, the loaded config path and (optionally) its full text, plus configured and active binding modes. Read-only. Set include_config_text=false to skip the potentially large config body. This is the only config-introspection tool; live layout comes from get_tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_config_textNoInclude the full config file text (can be large). Default true.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
is_swayYesTrue when the running compositor identifies as Sway.
versionYesHuman-readable i3/Sway version, e.g. '4.25.1'.
config_textNoFull text of the loaded config, or null when not requested.
binding_modesNoNames of all configured binding modes.
loaded_config_pathNoPath of the loaded config file, if reported.
active_binding_modeNoCurrently active binding mode name, or null if unsupported by the WM.
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint. The description adds value by warning about the potentially large config body and explicitly stating 'Read-only'. No contradiction with annotations.

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 sentences, front-loaded with main purpose, then details, then sibling distinction. No wasted words, every sentence adds value.

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 simple tool (one optional param, output schema exists), the description covers returned fields, parameter guidance, and sibling context. No gaps.

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 coverage is 100% with one parameter described. The description adds practical guidance on when to set include_config_text=false to skip large config body, enhancing the schema's 'can be large' note.

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 inspects i3/Sway configuration state, listing specific fields (version, compositor, config path, config text, binding modes). It explicitly distinguishes itself from siblings by stating it's the only config-introspection tool and directing users to get_tree for live layout.

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?

The description provides explicit guidance on when to use this tool (config introspection) and when not to include config text (set include_config_text=false to skip large body). It also names the alternative get_tree for live layout, fulfilling both when-to-use and when-not-to-use.

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/kuhyx/i3wm-mcp'

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