Skip to main content
Glama

Check a Docsworth pull request

check_pr
Read-only

Check whether a pull request opened by propose_edit, verify or draft_page is open, merged or closed, review its feedback, and confirm the page it touches before acting on the change.

Instructions

Check a pull request that propose_edit, verify or draft_page opened: whether it's open, merged or closed, its reviews, and the page it touches. Use it to follow up on a proposal before acting on it: before verify after an edit, or before proposing the same change again. A PR without a Docsworth PR's shape (its branch, base and files), or one touching a page you can't see, is reported as not found, the same as a number with no PR. The shape isn't proof of who opened it: check the number your own write returned.

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": {
      "pr_number": "<pr_number>"
    },
    "name": "check_pr"
  }
}

Input Schema

NameRequiredDescriptionDefault
pr_numberYesThe `pr_number` that `propose_edit`, `verify` or `draft_page` returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes further by defining not-found semantics (a PR lacking Docsworth's branch/base/files shape, or one touching an invisible page, is reported as not found just like an unknown number). It also warns that the shape is not proof of origin and instructs the caller to match the number its own write returned, which is a real safety behavior an agent would otherwise miss.

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?

Purpose and return contents are front-loaded in the first sentence, followed by usage and edge cases. Four sentences with no filler, though the final two clauses are dense and could be split for readability.

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 read-only, single-parameter tool with no output schema, the description covers the purpose, what is returned, when to call it, and the two failure modes. Nothing an agent needs in order to invoke it correctly is missing.

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?

Schema coverage is 100% and the single parameter is already documented, so the description adds mostly reinforcement: the pr_number is the value returned by propose_edit, verify or draft_page. The not-found rule implicitly constrains which numbers are valid, which is a small but useful addition.

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 specific verb (check) and resource (pull request opened by propose_edit, verify or draft_page), and enumerates what is returned: state (open/merged/closed), reviews, and the page it touches. The named sibling linkage lets an agent place it in the workflow without inspecting other schemas.

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 explicit when-to-use conditions: follow up on a proposal, check before verify after an edit, and check before re-proposing the same change. It does not explicitly name tools to avoid, but the workflow framing routes the agent well enough.

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