Skip to main content
Glama

Fetch Topic

fetch_topic

Retrieve all project messages tagged with a specific topic, regardless of recipient, to review relevant discussions and track updates.

Instructions

Fetch all messages in a project with a given topic tag, regardless of recipient.

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": {
      "project_key": "<project_key>",
      "topic_name": "<topic_name>"
    },
    "name": "fetch_topic"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax number of messages to return (default 50).
formatNo
since_tsNoISO-8601 timestamp; only messages newer than this are returned.
agent_nameNo
topic_nameYesThe topic tag to filter by (case-insensitive).
project_keyYesProject identifier.
unread_onlyNoWhen True, restrict to messages where the viewer has a recipient row that has not been explicitly marked read. This narrows beyond the default sender-or-recipient visibility — messages the viewer sent (but is not a recipient of) and broadcast/thread-visible messages where the viewer has no MessageRecipient row are excluded under this flag, because "unread" is only well-defined for a recipient row. A bare `fetch_topic` call does NOT mark messages read.
include_bodiesNoInclude full Markdown bodies in the payloads (default true).
registration_tokenNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / include_bodies / description
      Added value: +"Include full Markdown bodies in the payloads (default true)."
    • addedInput schema / properties / limit / description
      Added value: +"Max number of messages to return (default 50)."
    • addedInput schema / properties / project_key / description
      Added value: +"Project identifier."
    • addedInput schema / properties / since_ts / description
      Added value: +"ISO-8601 timestamp; only messages newer than this are returned."
    • addedInput schema / properties / topic_name / description
      Added value: +"The topic tag to filter by (case-insensitive)."
    • addedInput schema / properties / unread_only / description
      Added value: +"When True, restrict to messages where the viewer has a recipient\nrow that has not been explicitly marked read. This narrows beyond\nthe default sender-or-recipient visibility — messages the viewer\nsent (but is not a recipient of) and broadcast/thread-visible\nmessages where the viewer has no MessageRecipient row are\nexcluded under this flag, because \"unread\" is only well-defined\nfor a recipient row. A bare `fetch_topic` call does NOT mark\nmessages read."
  2. First observedv0.3.4

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one real trait beyond the schema — that visibility spans all recipients rather than the viewer's inbox — but it says nothing about read-only semantics, whether the call mutates read state, permission or auth requirements, or pagination/truncation behavior when the result set is large. Genuine but thin disclosure for a tool with zero annotation coverage.

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?

A single, front-loaded sentence with no filler or redundancy; the scoping qualifier arrives immediately after the verb. It is efficient, though at this brevity it also leaves no room for the behavioral detail the tool needs, so conciseness shades into under-specification.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter tool with no annotations and a non-trivial visibility model, one sentence is not enough. An output schema exists, so return values need not be explained, but the description omits read-only status, auth requirements tied to registration_token, and any indication of how limit/since_ts/agent_name shape results beyond what the schema states.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67% and the description adds essentially no parameter meaning of its own — it only restates project and topic, the two required fields already documented in the schema. Three parameters (format, agent_name, registration_token) carry no description anywhere, and the description does nothing to compensate for those gaps, notably the auth role of registration_token and the effect of format on the payload.

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 names a specific verb and resource ('Fetch all messages') and states a scope that is genuinely distinguishing: 'in a project with a given topic tag, regardless of recipient.' The 'regardless of recipient' clause implicitly contrasts with a recipient-scoped inbox view, so an agent can form a rough sense of what this returns. It stops short of naming any sibling explicitly, which keeps it at 4 rather than 5.

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?

Usage is only implied: the phrase 'regardless of recipient' hints that this is the broad-visibility counterpart to a recipient-filtered fetch, but the description never states when to choose this over fetch_inbox or search_messages. There are no stated prerequisites, no when-not-to-use conditions, and no mention of the auth-related registration_token parameter's role.

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