Lookup Tax Rule
lookup_tax_ruleLook up a verified tax or accounting rule by its key, for any of the 32 countries AccountsOS covers. Needs no account: pass country. Call list_tax_rules first to find the keys. If the country is not covered it says so, and you must not quote another country's rules instead.
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": {
"key": "<key>"
},
"name": "lookup_tax_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The rule key. Use list_tax_rules to see all available keys for the active company's country. | |
| as_of | No | Optional ISO date (YYYY-MM-DD) the answer must be true for. Pass this whenever the question is about a PAST period - a prior-year return, an old invoice, a historic filing - or a FUTURE one such as next year's rates, because rates change and the current rule may not be the one that applies then. The system walks the rule history and returns the version in force on that date, plus the period it applies to. Omit for questions about today: the answer is then the version in force today. A next-year rule may not be law yet; its answer says so. | |
| company | No | Which company to read, by name or id, when the account has more than one (see list_companies). Leave it out to use the only company, or the default. | |
| country | No | ISO country code of the business, such as GB, IE or US. Pass it when the user has not connected AccountsOS. Once connected, leave it out and their company's country is used. |