Skip to main content
Glama

ai_pr_description

Read-only

AI pull request description — Turn a unified diff into a ready-to-paste pull request description: conventional title, type, summary, change bullets, breaking-change notes, risk LOW/MEDIUM/HIGH with reasons, reviewer testing checklist, review focus and a Markdown body. Offline diff stats per file plus flags for tests, docs, dependencies, migrations, CI, infra and security-sensitive files. diff= (unified diff text) or url= (raw .diff URL or a GitHub pull/commit/compare URL). Optional context= author notes. Price: $0.008 USDC (Base, via x402).

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": {
      "diff": "<diff>"
    },
    "name": "ai_pr_description"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffYesdiff --git a/app.js b/app.js ...

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the safety profile is covered; the description adds genuinely non-obvious behavior beyond that—what the response contains, that per-file diff stats and test/docs/dependency/migration/CI/security flags are computed, and critically that the call is paid ($0.008 USDC via x402 on Base), which is a prerequisite an agent must know. It stops short of noting rate limits, failure modes, or how large diffs are handled.

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?

It is front-loaded with the value proposition and the output inventory, then the inputs, then pricing—a sensible order for an agent scanning it. It is dense but nearly every clause carries information; the one wasted element is the `url`/`context` listing, which occupies space and introduces inaccurate guidance.

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?

There is no output schema, so the description carries the burden of describing the return value, and it does so thoroughly (risk rating with reasons, reviewer checklist, review focus, Markdown body). The payment/auth requirement is also disclosed. The remaining gap is the undocumented relationship between the advertised `url`/`context` inputs and the actual single-parameter schema.

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

Parameters2/5

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

Schema coverage is 100% for the single required `diff` property, so a baseline 3 would apply—except the description advertises two parameters the schema does not define: `url=` as an accepted alternative and `context=` for author notes. An agent following the description would send a URL or context and fail validation, since `diff` is required and nothing else is declared. The description actively misleads rather than merely restating the 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?

The description states a concrete verb and resource—'Turn a unified diff into a ready-to-paste pull request description'—and then enumerates the exact artifacts produced (conventional title, type, summary, bullets, breaking-change notes, risk level, checklist, Markdown body). That detail alone separates it from neighbors like ai_commit_message, ai_code_review, and ai_changelog, so an agent can pick it without opening a schema.

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

Usage Guidelines3/5

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

Usage is implied through input shape ('diff= (unified diff text) or url= ...') and the optional author notes, which tells the agent what to feed it, but there is no explicit when-to-use/when-not-to-use guidance and no named alternative for the overlapping siblings (commit messages, code review). The alternative routing is left entirely to inference.

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