Repo AI-contribution preflight
repo_ai_policyBefore a coding agent opens a PR: does this GitHub repo ban, restrict or allow AI-assisted contributions? Reads AI_POLICY/CONTRIBUTING/AGENTS.md/PR template/SECURITY and returns a verdict, evidence lines with file:line, and build/test commands from AGENTS.md. Keyword heuristic: read the evidence. Price: $0.01 USDC on Base per call, paid with x402 (MCP transport: an unpaid call returns the x402 PaymentRequired object; retry with params._meta["x402/payment"]). Same tool over HTTP: GET /api/repo-ai-policy.
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": {
"repo": "<repo>"
},
"name": "repo_ai_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | owner/name or github.com URL (public repos) |