Tool detail
Python Code Validator
Checks Python source for syntax, lint, type, security and credential issues, and against caller-supplied examples, without executing it.
Categories: Code tools, Utilities
Use when
- statically check Python code for syntax and lint errors
- scan Python code for hardcoded credentials or unsafe constructs
- check generated Python against assert/doctest examples without running it
Not for
- not the execute or repair mode (this is the static-only check)
- not for languages other than Python
Inputs
POST JSON body: { code: string } (required); options.examples, options.intent (strings, optional)
Admitted input schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "The Python source to check."
},
"options": {
"type": "object",
"properties": {
"examples": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "What the code is supposed to do, as assert or doctest lines, one per line. This is the only check that can fail code which parses, lints and runs."
},
"intent": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "What the code was asked to do, in words."
}
},
"required": [],
"additionalProperties": false
}
},
"required": [
"code"
],
"additionalProperties": false
}Endpoint
- Method
POST- URL
https://api.statemind.ai/v1/x402/static
Payment
- Protocol
- x402
- Listed price
- 0.01 USDC per call on Base
- Payment method
- exact
- Network
- eip155:8453
- Asset
- 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.
Source
- Directory
- Coinbase x402 Bazaar
- Record
- POST https://api.statemind.ai/v1/x402/static
- Retrieved
- 2026-09-30T20:37:07.382Z
- Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524- Catalog built
- 2026-09-30T22:31:58.034Z