Skip to main content
Glama

Post PR link

post_pr_link
Idempotent

After you open a fix PR for a bug, link it back to the Snag ticket: the dashboard shows it as the ticket's fix PR and records an activity entry. Call once per bug, only after the PR actually exists — never invent a URL.

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": {
      "ticketId": "<ticketId>",
      "prUrl": "<prUrl>"
    },
    "name": "post_pr_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
prUrlYes
ticketIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false; the description goes beyond them by disclosing the side effects (dashboard association plus an activity entry) and the once-per-bug convention. It does not cover failure modes or what happens if a link already exists, which keeps it short of a 5.

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

Conciseness5/5

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

Two tight sentences, front-loaded with the triggering moment, followed by the usage constraint. No filler and nothing buried.

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 two-parameter mutation tool with no output schema, the description covers the trigger, the effects, and the key guardrail against fabricated URLs. It leaves the accepted URL format and the response/error behavior unstated, a modest gap given the strict schema pattern.

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 0%, so the description must carry parameter meaning. It clarifies that ticketId identifies a Snag ticket and that prUrl must be a real, non-invented URL, but it omits the schema's GitHub-only URL pattern and the no-slash constraint on ticketId, so an agent could still submit a value the schema rejects.

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 pairs a specific verb ('link it back') with a specific resource (a fix PR to a Snag ticket) and states the observable result: the dashboard shows it as the ticket's fix PR and records an activity entry. It is obviously distinct from the read-only siblings, though it never names an alternative explicitly.

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

Usage Guidelines5/5

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

It gives explicit preconditions and exclusions: 'After you open a fix PR', 'Call once per bug', 'only after the PR actually exists', and 'never invent a URL'. An agent knows both when to call and when not to.

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.

Resources