Skip to main content
Glama

register_thread_pull

Idempotent

Track a pull request you opened outside the change flow on its task thread so the change sweep refreshes it and swarm metrics count it; the repository must be in the workspace egress allowlist.

Instructions

Track a pull request the change flow did not open (yours, from a session) on its task's thread, so the change sweep refreshes it and get_swarm_metrics counts it: its time to ready runs from the task's CLAIM: comment (else claimed_at, else now) to the ready-to-merge label, and its merge closes the task. The repository must be in the workspace egress allowlist (github or github_branch). A pull request another thread tracks is refused. The twin of PUT /threads/{id}/pull.

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": {
      "thread_id": "<thread_id>",
      "repo": "<repo>",
      "pull_number": "<pull_number>"
    },
    "name": "register_thread_pull"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesowner/name, or a GitHub clone URL
thread_idYes
claimed_atNowhen the task was claimed, for a claim said outside Maidan; a CLAIM: comment Maidan posted takes precedence
pull_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the mutation shape (readOnlyHint=false, idempotentHint=true, destructiveHint=false); the description adds substantial behavior beyond them: the change sweep refreshes the registered PR, get_swarm_metrics counts it, the time-to-ready clock starts at the CLAIM: comment or claimed_at or now, and merge closes the task. It also discloses the preconditions and the duplicate-registration refusal.

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 action and side effects, then tightened with parentheticals for the fallback ordering. It is dense and reads as one long run-on chain of colons and clauses, but nearly every clause carries information the agent needs.

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?

For a four-parameter mutation with no output schema, the definition covers side effects, preconditions, failure modes, and lifecycle consequences, which is everything an agent needs to decide to call it and predict the outcome. No meaningful gap remains.

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 50% schema coverage, the description carries real weight: it defines what claimed_at means and its precedence order relative to a CLAIM: comment, and it constrains repo to an allowlisted GitHub owner/name or clone URL. thread_id and pull_number get no added meaning, but both are self-evident from name and schema.

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 — register a pull request the change flow did not open onto its task's thread — and immediately scopes it to PRs opened outside that flow ("yours, from a session"). This cleanly separates it from the automatic registration path and from watch_pull, which merely observes.

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?

Gives a concrete when-to-use condition (the change flow did not open the PR) and a hard refusal condition (a PR another thread tracks is refused), plus the egress allowlist prerequisite. It stops short of naming a sibling tool as the alternative path, so the routing is inferred rather than explicit.

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