declarations_prepare
Prepares a declaration for agent-based ANAF submission, returning XML, URL, Bearer token, and CIF so a local agent can proxy the mTLS request; supports submit, listMessages, and download flows.
Instructions
Prepare a declaration for agent-based submission. Returns XML content, ANAF URL, Bearer token, and CIF needed by the local agent to proxy the mTLS request. Use operation param for different flows: submit (default), listMessages, download.
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>"
},
"name": "declarations_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Declaration UUID | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| operation | No | Operation type (default: submit) | |
| downloadId | No | ANAF download ID (required for operation=download) |