PR
Agent Service · x402 · early usage

One merge-safety verdict for a public GitHub pull request

One merge-safety verdict for a public GitHub pull request. Fetches the PR diff and runs it through code, secret, CI/CD pipeline and dependency scanners, returning a single verdict (pass, caution, block), a risk score and findings with severity, file, line and…

by api.agentstools.dev · discovered, not yet claimed by its owner · updated 2026-10-08

30d calls1
30d payers1
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

One merge-safety verdict for a public GitHub pull request. Fetches the PR diff and runs it through code, secret, CI/CD pipeline and dependency scanners, returning a single verdict (pass, caution, block), a risk score and findings with severity, file, line and a fix hint. One call instead of slicing the diff into several. Security indicators, not a guarantee.

Tags: github · pull-request · code-review · security · merge · bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-08
Input example from Bazaar metadata
{
  "pr_url": "https://github.com/gitpython-developers/GitPython/pull/1901"
}
Output example
{
  "counts_by_dimension": {
    "ci": 1,
    "code": 1,
    "secret": 1
  },
  "counts_by_severity": {
    "high": 2,
    "medium": 1
  },
  "coverage": {
    "dimensions_partial": [],
    "dimensions_run": [
      "code",
      "secret",
      "ci"
    ],
    "files_scanned": 6,
    "files_total": 6,
    "graph_rules_ran": true,
    "skipped_files": [],
    "source": "diff",
    "truncated": false
  },
  "disclaimer": "Automated merge-risk indicators — security signals, not a guarantee.",
  "findings": [
    {
      "dimension": "secret",
      "evidence": "AWS_KEY = \"AKIA…4E7Q\"",
      "fix_hint": "Remove the hardcoded AWS credential, rotate it, and load it from a secret manager / environment variable.",
      "line": 12,
      "path": "src/upload.py",
      "provider": "secretscan",
      "reason": "A hardcoded AWS access key appears in an added line.",
      "rule_id": "aws.akia",
      "severity": "high"
    },
    {
      "dimension": "ci",
      "evidence": "uses: actions/checkout@v4",
      "fix_hint": "Pin to the full 40-char commit SHA.",
      "line": null,
      "path": ".github/workflows/ci.yml",
      "provider": "cicdscan",
      "reason": "Third-party action pinned to a mutable tag, not a commit SHA.",
      "rule_id": "gha.unpinned_uses",
      "severity": "high"
    }
  ],
  "findings_truncated": false,
  "object": "pr_verdict",
  "pr": {
    "head_sha": "d34db33f…",
    "number": 42,
    "owner": "acme",
    "repo": "widget",
    "title": "Add uploader"
  },
  "risk_score": 80,
  "ruleset_versions": {
    "ci": "2026.07.24",
    "code": "2026.07.16",
    "secret": "2026.07.16"
  },
  "verdict": "block"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/29309.json for the price and payment options.
  3. Pay. Call GET https://api.agentstools.dev/pr/verdict. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.03 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
1 calls · 1 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.030xF22e558a00D91Ee12A1F50C52186FecB8dDFf493300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "30000",
    "amountUsd": 0.03,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {},
  "type": "string"
}

Examples

curl
curl -X POST 'https://api.agentstools.dev/pr/verdict' -H 'Content-Type: application/json' --data '{"pr_url":"https://github.com/gitpython-developers/GitPython/pull/1901"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://api.agentstools.dev/pr/verdict", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"pr_url\":\"https://github.com/gitpython-developers/GitPython/pull/1901\"}"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
import json
res = httpx.request("POST", "https://api.agentstools.dev/pr/verdict", json=json.loads("{\"pr_url\":\"https://github.com/gitpython-developers/GitPython/pull/1901\"}"))
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
api.agentstools.dev
Endpoint
https://api.agentstools.dev/pr/verdict
Machine-readable
/resources/29309.json