Skip to main content
Glama

get_ehour_report

Read-only

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

NameRequiredDescriptionDefault
endYesYYYY-MM-DD
pageNoPage number (for paging)
startYesYYYY-MM-DD
columnsNoComma-separated eHour columns for raw rows, e.g. PROJECT_ID, HOURS_APPROVED
user_idNoID of the user
group_byNoSum hours per project / client / user / task / team (combinable, e.g. ["project","user"]).
client_idNoID of the client
project_idNoID of the project
aggregationNoPeriod split: with group_by per period; without group_by default DAILY
include_budgetNoWith group_by project: add lifetime budget, consumed and remaining hours.
include_nullified_timeNoAlso include nullified time

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / aggregation / description
      Added value: +"Period split: with group_by per period; without group_by default DAILY"
    • addedInput schema / properties / client_id / description
      Added value: +"ID of the client"
    • addedInput schema / properties / columns / description
      Added value: +"Comma-separated eHour columns for raw rows, e.g. PROJECT_ID, HOURS_APPROVED"
    • addedInput schema / properties / include_nullified_time / description
      Added value: +"Also include nullified time"
    • addedInput schema / properties / page / description
      Added value: +"Page number (for paging)"
    • addedInput schema / properties / project_id / description
      Added value: +"ID of the project"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and openWorldHint, and the description adds substantial context beyond them: the Reporting-Only key authorization constraint, that summin is done server-side, and the critical caveat that budget values cover the whole project lifetime rather than the requested date range. It also notes that raw time values are in MINUTES while grouped results are in HOURS, preventing unit errors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the resource, required parameters, and the preferred mode; every sentence carries information (units, budget caveat, filter list). It is a dense single block without sub-headings or bullets, which makes it harder to scan than it needs to be for a description this long.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with no output schema, the description covers both operating modes, unit conventions for each, budget-scope caveats, available filters, and pagination behavior. Nothing an agent needs in order to call it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a 3 would be the baseline, but the description adds meaning the schema lacks: group_by fields are combinable and additionally split results by period, page size is 20,000 rows, and include_budget only applies when group_by contains project. These are non-obvious semantics an agent cannot infer from the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Tracked time (and expenses) from eHour for a date range', backed by the concrete endpoint (GET /api/v4/report-kv). It clearly distinguishes this reporting tool from write-oriented and list-oriented eHour siblings named in the catalog.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit mode-selection guidance: 'PREFER group_by for any question about totals' with an example question, and explains the fallback raw-row mode with its optional aggregation. It does not, however, say when to reach for this tool instead of a sibling such as get_ehour_approval or list_ehour_expenses.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.