declarations_agent_result
Submits the ANAF response from the local agent to the server, which parses it, extracts the upload ID, sets status to PROCESSING, and starts status checking.
Instructions
Submit the ANAF response received via the local agent back to the server. The server parses the response, extracts the upload ID, sets status to PROCESSING, and dispatches status checking.
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": {
"id": "<id>",
"statusCode": "<statusCode>",
"body": "<body>"
},
"name": "declarations_agent_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Declaration UUID | |
| body | Yes | Response body from ANAF | |
| headers | No | Response headers from ANAF | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| statusCode | Yes | HTTP status code from ANAF response |