Skip to main content
Glama

get_unread_count

Read-onlyIdempotent

Counts your unread notifications for a badge, excluding read, snoozed, and inaccessible private-channel or DM items to display an accurate unread total.

Instructions

Return {count}, the number of unread notifications a member has, for a badge. Notifications that are read, snoozed until a later time, or from a private channel or DM the member can no longer read are not counted. List the notifications with list_notifications and clear them with mark_all_notifications_read. member_id must be your own. 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": {
      "member_id": "<member_id>"
    },
    "name": "get_unread_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
member_idYesUUID of the member. Must be your own member id (whoami returns it); any other member is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv479.0.2
    • addedInput schema / properties / member_id / description
      Added value: +"UUID of the member. Must be your own member id (whoami returns it); any other member is refused."
  2. First observedv479.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real value by defining the counting rule: read, snoozed, and inaccessible private-channel/DM notifications are excluded. It does not mention staleness, caching, or rate limits for what is presumably a frequently-polled badge endpoint, which keeps it short of a 5.

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?

Four short sentences with the return shape front-loaded, then eligibility rules, then alternatives, then auth. No filler and no repetition beyond one intentional emphasis on the self-only constraint.

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, but the description supplies the return value ({count}) and its semantics, so the agent knows exactly what comes back. For a single-parameter read tool, nothing needed to invoke it correctly 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% and the member_id property already documents the self-only rule and the whoami hint. The description's 'member_id must be your own' restates the schema, so no new parameter meaning is added. 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 specific verb and resource ('Return {count}, the number of unread notifications a member has') plus the intended use ('for a badge'). This clearly separates it from list_notifications, which returns the notifications themselves rather than a scalar count.

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: use list_notifications to enumerate, mark_all_notifications_read to clear. Adds a hard prerequisite ('Requires workspace:read') and a constraint ('member_id must be your own'), so the agent knows both when to call it and what is disallowed.

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