Skip to main content
Glama

get_workspace_occupancy

Read-onlyIdempotent

Count open task threads across all readable workspace channels by stage—open, queued, claimed, working, and blocked—to assess workload and claimable work.

Instructions

Count your workspace's open task threads by stage, summed over every channel you can read, as {open, queued, claimed, working, blocked}. queued is claimable now, claimed is held on a live lease but not yet acknowledged, working is held and acknowledged, and blocked is parked or blocked; the last four add up to open. A private channel's threads count only for its members and a DM's only for its participants. Use get_channel_occupancy for one channel and get_workspace_queue_depth for the unclaimed-work view with filters. Requires workspace:read.

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": {
      "workspace_id": "<workspace_id>"
    },
    "name": "get_workspace_occupancy"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idYesUUID of your own workspace (whoami returns it). A different workspace is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv479.0.2
    • changedInput schema / properties / workspace_id / description
      Previous value: -"your own workspace (whoami's workspace_id)"New value: +"UUID of your own workspace (whoami returns it). A different workspace is refused."
  2. First observedv479.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, closed-world safety profile, and the description adds real behavioral context beyond them: per-stage counting semantics, the visibility rule that a private channel's threads count only for members and a DM's only for participants, and the workspace:read auth requirement.

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?

Front-loaded with purpose, then the stage taxonomy, then the visibility caveat, then alternatives and auth. The taxonomy definitions are dense but each one earns its place given there is no output schema to document the returned fields.

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?

With no output schema, the description compensates by defining the returned keys {open, queued, claimed, working, blocked}, their relationships ('the last four add up to open'), and the scoping caveats. An agent has everything needed to call and interpret the result.

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?

Only one parameter and schema coverage is 100%; the schema already explains that workspace_id is a UUID from whoami and that a different workspace is refused. The description's 'your workspace's' phrasing is consistent but adds no new meaning, so the high-coverage baseline of 3 applies.

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 ('Count your workspace's open task threads by stage') plus the aggregation scope ('summed over every channel you can read'), which immediately separates it from single-channel or filtered 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 routes the agent elsewhere: get_channel_occupancy for one channel and get_workspace_queue_depth for the unclaimed-work view with filters. It also states the prerequisite ('Requires workspace:read'), leaving nothing to infer about when this tool is the right choice.

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