spv_request_agent_result
Relays the raw ANAF response to complete an SPV request, saving the ANAF request ID and title or the returned error on the original request.
Instructions
Step 2 of an SPV request: relay the raw ANAF answer to cerere ({id_solicitare, titlu} or {eroare}). Records the ANAF request id or the error on the request.
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": {
"requestId": "<requestId>",
"statusCode": "<statusCode>",
"body": "<body>"
},
"name": "spv_request_agent_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Raw ANAF response body (JSON) | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| requestId | Yes | Request UUID from spv_request_prepare | |
| statusCode | Yes |