Work grade
work_gradeGrade any AI agent work deliverable before releasing escrow (ERC-8183 / G2 Jobs / MCP): checks JSON/schema validity, anti-refusal/stub quality, embedded indirect prompt injection, secret/PII leakage, and task alignment, returning an Ed25519-signed PASS_RELEASE / REVISE / REJECT_REFUND attestation verifiable offline via /.well-known/jwks.json. Free interactive tester (10/day): https://apexfaucet.xyz/grade/ . $0.004 per call over x402 or X-API-Key. Call once without payment for terms, then call again with payment.
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": {
"task": "<task>",
"output": "<output>"
},
"name": "work_grade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Task specification the worker agent was hired to complete. | |
| jobId | No | Optional escrow job ID bound into signed claims. | |
| output | Yes | Deliverable output produced by the worker agent. | |
| rubric | No | Optional evaluation criteria. | |
| payment | No | signed x402 payment payload (PAYMENT-SIGNATURE). | |
| provider | No | Optional worker wallet/ID bound into signed claims. | |
| jsonSchema | No | Optional JSON Schema object to validate JSON output against. | |
| useAiJudge | No | Optional: enable Workers AI rubric judge alongside deterministic checks. | |
| expectedFormat | No | Optional expected output format. | |
| requiredFields | No | Optional required JSON keys when output is JSON. |