Skip to main content
Glama

get_kind_census

Read-onlyIdempotent

Counts events in a workspace event log by kind and optionally narrows to a channel or thread, showing what happened rather than queue state.

Instructions

Count the events in the workspace's event log by event kind, as {workspace_id, total, counts} where counts lists {kind, count} ordered by count descending then kind, and kinds with no events are left out. It answers what has happened (messages posted, claims expired, threads landed), not how much work is queued: use get_queue_depth or get_channel_occupancy for queue state. Optionally narrowed to one channel or one thread; there is no time window, and events on threads you may not read, including private channels you are not in, are excluded from the totals. Requires workspace:read.

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_kind_census"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idNoUUID of a thread; count only events in it. You must be able to read it.
channel_idNoUUID of a channel; count only events in it. You must be able to read it.
workspace_idNoUUID of your own workspace; omitted, your own. Another workspace is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv479.0.2
    • changedInput schema / properties / channel_id / description
      Previous value: -"optional channel scope; gated when present"New value: +"UUID of a channel; count only events in it. You must be able to read it."
    • changedInput schema / properties / thread_id / description
      Previous value: -"optional thread scope; gated when present"New value: +"UUID of a thread; count only events in it. You must be able to read it."
    • changedInput schema / properties / workspace_id / description
      Previous value: -"defaults to the caller's workspace"New value: +"UUID of your own workspace; omitted, your own. Another workspace is refused."
  2. First observedv479.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the permission requirement (workspace:read), the exclusion rule for events on unreadable threads and private channels the caller is not in, the absence of time filtering, and the output ordering semantics. These are exactly the operational facts an agent needs before trusting totals.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core operation and result shape, then layers scope, alternatives, and constraints in a logical order with no filler sentences. It is dense to the point of being a single long paragraph, but every clause carries information.

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?

There is no output schema, and the description compensates fully by specifying the exact response structure, ordering rule, and omission of empty kinds. Combined with the permission and visibility caveats, nothing needed to call or interpret this tool is missing.

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%, so UUID formats, defaults, and the 'another workspace is refused' rule are already documented. The description adds only that narrowing is optional and mutually scoped to one channel or one thread, which is marginal value over the schema, so the baseline 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 precise verb and resource ('Count the events in the workspace's event log by event kind') and immediately pins down the exact return shape {workspace_id, total, counts} with ordering and zero-count omission. This is clearly distinguishable from the queue-state siblings named later.

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 contrasts scope with alternatives: 'It answers what has happened ... not how much work is queued: use get_queue_depth or get_channel_occupancy for queue state.' It also states narrowing options (one channel or one thread) and the limitation 'there is no time window', which prevents a common misuse.

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