Skip to main content
Glama

find_thread

Read-onlyIdempotent

Find the thread linked to a Slack message, Slack channel, or GitHub pull request, so you can trace where a result or task discussion lives. Returns the matching thread or null.

Instructions

Find the thread an external reference points at: a Slack message (slack_channel and slack_ts: the thread whose result was posted as that message or into that Slack thread), a Slack channel alone (the thread it is linked to), or a GitHub pull request (repo and pr_number: the thread tracking it, linked to it, or delivering to it). Returns the thread, or null when nothing in your workspace that you may read matches. The twin of GET /workspaces/{id}/thread-lookup.

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": "find_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNoowner/name or a GitHub clone URL; with pr_number
slack_tsNoa Slack message ts such as 1700000000.000100; needs slack_channel
pr_numberNo
workspace_idNoyour own workspace (whoami's workspace_id); omitted, the same
slack_channelNoa Slack channel id such as C0123ABCD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the bar is lower. The description still adds real value: results are permission-scoped ('nothing in your workspace that you may read') and workspace-bounded, and the null-on-miss contract is stated rather than left to guesswork. It does not describe the shape of the returned thread, which is the remaining disclosure gap.

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-loaded with the core verb and resource, then organized as an enumeration of the three reference forms, so a reader can stop as soon as their case is covered. It is dense, single-sentence, and every clause carries routing information, though the nested parentheses make it heavier to parse than necessary.

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

Completeness4/5

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

For a 5-parameter lookup with no output schema, the definition covers the dispatch logic, the defaulting of workspace_id, and the null return contract, which is enough to call it correctly. The one thing an agent might still want is a hint about what the returned thread contains, but that is a minor gap given the tool's narrow resolve-one-object role.

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

Parameters4/5

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

With 80% schema coverage the baseline is 3, and the description earns above that by explaining what the parameters *select* rather than merely naming them: slack_ts is the message whose result was posted there, pr_number is the PR being tracked/linked/delivered to, and workspace_id defaults to your own. It effectively defines the semantic pairing rules (channel with ts, repo with pr_number) that the schema only hints at.

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?

Specific verb plus resource with an explicit scope: 'Find the thread an external reference points at', followed by the three reference kinds (Slack message, Slack channel, GitHub PR). It is unmistakably a single-thread resolver rather than a lister. The only gap is that it never names the sibling find_threads, so an agent must infer the singular/plural split from the name alone.

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?

It spells out the input combinations that trigger each lookup mode: slack_channel+slack_ts resolves the thread behind a posted message, slack_channel alone resolves the channel's linked thread, and repo+pr_number resolves the thread tracking or delivering to a PR. It also states the negative outcome (null when nothing in your workspace matches). What is missing is an explicit 'use find_threads instead when you have no external reference' exclusion.

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