Gross Margin Trend Analytics
fortnox_gross_margin_trendAnalyze gross margin trends by retrieving the formula and grouping structure for revenue and COGS accounts. Configure period, grouping, and account ranges.
Instructions
[LIMITED] Analyze gross margin trends. Returns formula and structure only.
For actual margin data, use fortnox_account_activity with:
Revenue: account_range={from: 3000, to: 3999}
COGS: account_range={from: 4000, to: 4999}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fortnox_gross_margin_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Date period to analyze (e.g., 'this_year', 'last_year') | |
| to_date | No | End date for analysis (YYYY-MM-DD). Ignored if period is specified. | |
| group_by | No | How to group the margin trend: 'month' or 'quarter' | month |
| from_date | No | Start date for analysis (YYYY-MM-DD). Ignored if period is specified. | |
| cogs_accounts | No | Cost of goods sold account range (e.g., '4000-4999'). Default: 4000-4999 | |
| response_format | No | Output format: 'markdown' or 'json' | markdown |
| revenue_accounts | No | Revenue account range (e.g., '3000-3999'). Default: 3000-3999 |