{
  "id": "account_fee_lookup",
  "version": "1.0.0",
  "kind": "domain",
  "description": "Look up why an account was charged a fee.",
  "input_schema": {
    "type": "object",
    "required": ["account_id"],
    "properties": {
      "account_id": {
        "type": "string",
        "pattern": "^acct-\\d+$",
        "description": "Customer account id (acct-*)",
        "x-ground-in-user-context": true
      }
    }
  },
  "output_schema": {
    "type": "object",
    "required": ["text"],
    "properties": { "text": { "type": "string" } }
  },
  "invoke": {
    "method": "POST",
    "url": "http://agent-mocks:3010/fees/explain",
    "auth": "domain-oauth"
  },
  "owner": "accounts",
  "status": "published"
}
