post_lint_php
PHP lint: POST {code}, get the bugs back with line numbers. Deterministic static analysis — code is never executed, no AI. Catches SQL injection (request data interpolated into query strings), the removed mysql_* API, unbalanced braces, '+' string concat, = vs == in conditions, type-juggling loose comparisons, eval/extract on request data, unused variables, leftover var_dump. Understands PHP tags, heredocs, interpolation. Max 128 KB. ($0.002 per call, paid 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": {
"code": "<code>"
},
"name": "post_lint_php"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | PHP source to lint, max 128 KB |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| counts | No | ||
| issues | No | ||
| syntax | No | ||
| verdict | No | ||
| language | No |