get_ehour_report
Tracked time (and expenses) from eHour for a date range (GET /api/v4/report-kv; allowed for Reporting-Only keys). Required: start, end (YYYY-MM-DD). PREFER group_by for any question about totals ('how many hours per project / person this month'): eHour sums server-side and the answer is a few rows in HOURS (total_hours + rows sorted by hours), instead of one raw row per person and day. group_by: one or more of project, client, user, task, team. include_budget (with group_by containing project): adds budget_hours, budget_consumed_hours, budget_remaining_hours, budget_remaining_percent — NOTE these budget values cover the WHOLE project lifetime, not the date range. With group_by, aggregation additionally splits by period (e.g. MONTHLY -> one row per group and month); omitted = one total per group. Without group_by: raw key-value rows; optional aggregation (NONE|DAILY|DAILYGROUP|WEEKLY|MONTHLY|QUARTERLY|YEARLY, default DAILY), columns (comma-separated eHour columns, e.g. PROJECT_ID, TASK_NAME, USER_EMAIL, HOURS_APPROVED, HOURS_COMMENT), page (1-based, 20,000 rows per page); raw time values are in MINUTES. Filters for both modes: project_id, client_id, user_id, include_nullified_time. Read-only.
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": {
"start": "<start>",
"end": "<end>"
},
"name": "get_ehour_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | YYYY-MM-DD | |
| page | No | Page number (for paging) | |
| start | Yes | YYYY-MM-DD | |
| columns | No | Comma-separated eHour columns for raw rows, e.g. PROJECT_ID, HOURS_APPROVED | |
| user_id | No | ID of the user | |
| group_by | No | Sum hours per project / client / user / task / team (combinable, e.g. ["project","user"]). | |
| client_id | No | ID of the client | |
| project_id | No | ID of the project | |
| aggregation | No | Period split: with group_by per period; without group_by default DAILY | |
| include_budget | No | With group_by project: add lifetime budget, consumed and remaining hours. | |
| include_nullified_time | No | Also include nullified time |