Skip to main content
Glama

get_principal_notifications

Read-onlyIdempotent

Read notifications from the principal's Linear inbox—the person this identity acts for—so their alerts stay separate from your own. Filter unread items by date and paginate.

Instructions

The inbox of the human this identity acts for — a different person's notifications from notifications, which is this identity's own. Same shape, deliberately a separate tool rather than a parameter, so which inbox you're reading is never ambiguous. Errors if LINEAR_PRINCIPAL_TOKEN isn't configured for this identity, or if it resolves to someone other than LINEAR_PRINCIPAL_ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNonext_cursor from the previous call
firstNoHow many to return, default 50
sinceNoOnly notifications created on or after this date, e.g. 2026-09-24
unread_onlyNoDefault true

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoHow to use these results
orderNoHow results are ordered
has_moreNoTrue when more results exist; pass next_cursor as after
next_cursorNoCursor for the next page
unread_countNoLinear's unread count
notificationsNoPointers: id, type, time, read, actor, actor_kind and the ticket
stopped_earlyNoPresent when a later page failed; next_cursor resumes there

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A4.2/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), so the bar is lower. The description still adds genuinely new behavior: it errors when LINEAR_PRINCIPAL_TOKEN is unconfigured or resolves to someone other than LINEAR_PRINCIPAL_ID, and it notes the payload mirrors `notifications`.

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?

Three front-loaded sentences that state what it reads, why it is separate from the sibling, and when it fails; nothing is redundant. The em-dash stacking makes it slightly denser than necessary, keeping it out of the top band.

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?

An output schema exists so return values need not be described, and annotations carry the safety profile. What remains — identity/principal semantics and the token-resolution error conditions — is exactly the context an agent needs before invoking, and it is all present.

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 description coverage is 100% (all four params documented, including defaults and formats), so the schema does the heavy lifting. The description adds only the hint that the shape matches `notifications`; it gives no additional parameter semantics. 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 resource (the principal's inbox) and immediately distinguishes it from the sibling `notifications`, which reads this identity's own inbox. The sentence 'Same shape, deliberately a separate tool rather than a parameter' makes the boundary with the sibling unambiguous without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description names the alternative (`notifications`) and the condition that selects it ('a different person's notifications'), plus the failure conditions under which this tool must not be used. It stops short of an explicit trigger phrase such as 'use when acting on behalf of the human', leaving a small amount of inference.

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