Skip to main content
Glama

Link a pull request

link_pull_request
Idempotent

Put the pull request you opened for a job on that job, so the job shows the work: its title, its state and its CI. A pull request comes by itself onto each job its own commits, its branch's name or its title names by key — any branch whose name carries the key counts, and so does a commit whose message names it, on any branch — so use this for one that did not reach its job. The pull request must be in a GitHub repository bound to the job's project. This changes nothing in GitHub. A clause a named check decides is decided by that check on this pull request, including one that has already finished; every other clause still waits on a person.

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": "<project>",
      "job": "<job>",
      "url": "<url>"
    },
    "name": "link_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobYesThe job's key, e.g. BREW-12.
urlYesThe pull request's address, e.g. https://github.com/acme/api/pull/41.
projectYesThe project's key, e.g. BREW.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / job / description
      Previous value: -"The job's key, e.g. FLAIR-12."New value: +"The job's key, e.g. BREW-12."
    • changedInput schema / properties / project / description
      Previous value: -"The project's key, e.g. FLAIR."New value: +"The project's key, e.g. BREW."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=true, so the agent knows the local-state mutation profile. The description adds genuinely non-obvious behavior: 'This changes nothing in GitHub' scopes the write to the tracker only, and the clause about named checks being decided immediately (even already-finished ones) while other clauses wait on a person is a real side effect worth knowing. It does not say what the response contains or what happens if the link already exists, so it goes beyond annotations but not richly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is well front-loaded and the prerequisite and side-effect sentences are tight. The automatic-matching sentence, however, is tangled ('comes by itself onto each job its own commits, its branch's name or its title names by key') and the dash-clause about branches and commits takes two readings to parse, which costs clarity in a definition this short.

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 three-parameter mutation with no output schema, the definition covers purpose, prerequisite, the fact that GitHub is untouched, and the downstream effect on job clauses. That is enough for an agent to call it correctly. It omits what the tool returns or how to recover from a failed link, which keeps it short of complete.

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%, with all three parameters (project, job, url) documented with examples, so the baseline is 3. The description adds only the constraint that the PR's repository must be bound to the job's project, which is useful but not parameter-level syntax or format detail beyond the schema.

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 opening sentence gives a concrete verb and resource: put the pull request on the job so the job shows its title, state and CI. It also distinguishes this tool from the automatic linking path ('use this for one that did not reach its job'), which is the key disambiguation an agent needs. It stops short of naming a sibling tool explicitly, and the middle sentence explaining automatic matching is hard to parse.

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 states the selecting condition clearly: use this only for a pull request that did not already reach its job via commit, branch name or title. It also gives a hard prerequisite, that the PR must live in a GitHub repository bound to the job's project. There is no explicit when-not beyond that implied fallback, so it is clear context rather than full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.