Skip to main content
Glama

Get timesheets

get_timesheets
Read-onlyIdempotent

Worked shifts between two dates with clock in and out times, hours worked, breaks, jobs and tasks, and each person's totals. Hours are before any rounding the company's payroll export applies. Ongoing shifts are listed without hours. Use for payroll checks, overtime and "how many hours did X work".

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_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_timesheets"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYesLast day (included), YYYY-MM-DD
group_idNoOnly the people in this group and its sub-groups (an id from list_groups)
person_idsNoOnly these people (ids from list_people). Leave out for everyone you can see.
start_dateYesFirst day, YYYY-MM-DD, in the company's timezone
totals_onlyNoOnly each person's totals, not every shift. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent read, so the description is not carrying the safety burden. It still adds genuinely non-obvious behavior: hours are stated before the company's payroll export rounding, and ongoing shifts are returned without hours — both are material to interpreting results correctly.

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?

Three tight sentences with the payload description front-loaded and the interpretive caveats following. The first sentence is a dense enumeration, but every element (breaks, jobs, totals) conveys what comes back and earns its place.

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

Completeness4/5

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

For a read-only list tool with no output schema, the description covers what is returned, the rounding caveat, and the ongoing-shift edge case. It omits volume or result-size expectations despite the 500-person cap in the schema, which is the only notable gap.

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 description coverage is 100%, with date formats, timezone, group/person scoping, and the totals_only default all documented in the schema. The description adds nothing parameter-specific beyond the implied date range, so the baseline of 3 applies.

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

Purpose4/5

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

The description names a specific verb and resource and enumerates the returned content: worked shifts between two dates with clock in/out times, hours, breaks, jobs, tasks, and per-person totals. It is clearly distinguishable from mutation siblings like add_worked_shift, but it never explicitly contrasts with get_attendance_report, so it stops short of full sibling differentiation.

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?

It states concrete use cases (payroll checks, overtime, "how many hours did X work"), which tells the agent when to reach for it. It gives no explicit when-not guidance or named alternatives, so the routing is clear but incomplete.

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.

Resources