Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Get the active workspace

get_active_workspace

Retrieve the ID of the currently visible Hyprland workspace so an agent can remember where to switch back after isolating a window on another workspace.

Instructions

Returns the Hyprland workspace ID currently visible. Used to remember where to switch back to after isolating a window on another workspace.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_active_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the full behavioral burden. It makes clear this is a passive state read ('currently visible'), but it does not say what the return value's type/shape is, what happens if no workspace is focused, or whether it reflects the focused monitor in a multi-monitor setup.

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?

Two short sentences, the return behavior front-loaded and the motivating use case second. Every clause earns its place and there is no filler or restatement of the title.

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 zero-parameter, no-output-schema read tool this is close to sufficient: it says what is returned and why one would want it. The remaining gap is failure/edge-case behavior, which is minor at this complexity level.

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?

The tool takes no parameters, so there is nothing for the description to disambiguate beyond what the schema already conveys. Baseline 4 applies to a zero-parameter definition.

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?

The description states a specific verb and resource: it 'Returns the Hyprland workspace ID currently visible.' That is unambiguous and lets an agent distinguish it from a general window query. It stops short of contrasting itself with the sibling get_active_window, which reads as a closely related query an agent might confuse it with.

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 second sentence supplies one concrete scenario (remembering the return workspace before isolating a window elsewhere), which implies when to call it. There is no explicit when-not guidance and no named alternative, so an agent must infer the boundaries rather than being told them.

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