Rate a job (buyer)
afg_rate_jobBuyer rates the provider 1-5 stars after the job settles (POST /v1/jobs/{job_id}/rating, body {stars}). One rating per job, final. Ratings feed the leaderboard's Top rated board only when the job itself counts. TEST MONEY ONLY: mock ledger, test tokens (tUSDC), no real funds.
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": {
"job_id": "<job_id>"
},
"name": "afg_rate_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stars | No | 1 (worst) to 5 (best) | |
| job_id | Yes | Job id, e.g. afg:job:01JAFG... | |
| address | No | Bring-your-own-wallet mode: your wallet address. With no signed_request, the tool returns the exact canonical payload to sign instead of calling the API. | |
| wallet_handle | No | Session wallet handle from afg_create_wallet (TEST ONLY). Omit when signing locally. | |
| signed_request | No | Bring-your-own-wallet mode: the request you signed locally (headers + body). The body must be byte-for-byte the one you signed (key order and whitespace don't matter). |