Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_github_pr_review

Read-onlyIdempotent

Read an authorized GitHub pull request diff, then perform structured engineering review with customer-funded AI to identify concrete code issues, file-level evidence and relevant tests. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": {
      "owner": "<owner>",
      "repo": "<repo>",
      "pr_number": "<pr_number>"
    },
    "name": "api_github_pr_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository slug
ownerYesGitHub repository owner
pr_numberYesPull request number; GitHub OAuth in X-Provider-Token, model key in X-Provider-Key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint), so the description's added value is elsewhere: it discloses the per-call cost of 0.01 USDC on Base x402, the customer-funded AI model, and the X-Provider-Key / OAuth credential headers required. That is real operational context an agent needs before invoking. It stops short of describing failure modes, rate limits, or whether the payment is charged on error.

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?

Two sentences, front-loaded with the capability and followed by cost and credential details. Every clause carries information. Minor deduction because the payment and auth details are compressed into a single dense sentence that mixes cost, network, and header names.

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?

With no output schema, the description does the work of indicating the return shape: code issues, file-level evidence, relevant tests. Combined with the cost and credential disclosure, an agent has enough to call this correctly. It could say more about the review's scope or latency, but nothing critical is missing.

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%, so the baseline is 3. The description adds no meaning about owner, repo, or pr_number beyond what the schema already documents, though the schema itself does mention the auth headers inline in the pr_number field. Parameter handling is adequately documented overall, just not enriched by the prose.

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 specific verb-and-resource pair: read an authorized GitHub PR diff and run a structured engineering review that returns concrete code issues, file-level evidence and relevant tests. This is clearly distinguishable from the nearest sibling, api_github_workflow_runs, which deals with workflow runs rather than pull request diffs. An agent can select this tool without opening the 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 by the described capability (reviewing a specific PR diff) rather than stated. There is no explicit when-to-use versus when-not guidance, no mention of what to do for PRs that lack authorization, and no pointer to an alternative tool for cases this one does not cover. The context is inferable but not spelled out.

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