Skip to main content
Glama

Get timesheet totals

connecteam_get_timesheet_totals
Read-only

Payroll-ready timesheet totals of a time clock for a date range (at most 45 days, Connecteam's limit): per user and day, total/work/paid-break/unpaid-break hours (decimal), approved/submitted/locked flags and pay items by pay rule (with pay rates when defined). Filter by users, groups, jobs or approval state. GET /time-clock/v1/time-clocks/{timeClockId}/timesheet.

Input Schema

NameRequiredDescriptionDefault
job_idsNoOnly these (parent or regular) job ids.
end_dateYesLast date (yyyy-mm-dd), up to 23:59:59; at most 45 days after start_date.
user_idsNoOnly these user ids.
group_idsNoOnly users in these smart group ids.
is_lockedNotrue = locked only, false = unlocked only.
start_dateYesFirst date (yyyy-mm-dd), from 00:00:00.
is_approvedNotrue = approved days only, false = unapproved only.
is_submittedNotrue = submitted only, false = unsubmitted only.
time_clock_idYesTime clock id (connecteam_list_time_clocks).
include_plan_vs_actualNoAdd scheduled-vs-actual details per day (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With only readOnlyHint available, the description adds real behavioral context: the hard 45-day range cap, the REST endpoint, decimal hour units, and that pay rates appear only when defined. It does not discuss pagination, empty-range handling, or permission requirements.

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?

Two dense sentences, front-loaded with the return content before filters and the endpoint. Every clause carries information, though the trailing endpoint reference is marginally redundant for an agent.

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?

With no output schema, the description carries the burden of describing return values, and it does so thoroughly (per-user/day totals, break breakdowns, approval/submit/lock flags, pay items with rates). Combined with the stated range limit and filters, an agent has everything needed to call it correctly.

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

Parameters3/5

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

Schema coverage is 100%, so parameters are already fully documented in the schema. The description echoes the date-range limit and filter dimensions but adds no syntax or value semantics beyond what the schema provides; a 3 baseline is appropriate.

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 (get) and resource (timesheet totals of a time clock) with scope and content: per-user/per-day hours, flags and pay items. It is clearly distinguishable from siblings like connecteam_list_time_activities or connecteam_list_time_clocks, which are named/implied elsewhere.

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?

Conveys when the tool applies (payroll-ready totals for a time clock over a date range) and what can be filtered (users, groups, jobs, approval state). It does not explicitly name an alternative tool or state when not to use it, so it falls short of a 5.

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.