Skip to main content
Glama

Get roster

get_roster
Read-onlyIdempotent

Rostered (scheduled) shifts between two dates, and the rosters and roster weeks they belong to. Only published shifts unless include_unpublished is true (admins and managers), which adds drafts and changes not yet published, marked "published": false.

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_roster"
  }
}

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
include_unpublishedNoAlso draft weeks and unpublished changes. 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 establish read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description nonetheless adds real behavioral context: the default excludes unpublished data, enabling include_unpublished requires admin/manager privileges, and drafts are returned marked "published": false.

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 sentences, no filler, with the returned data front-loaded in the first sentence and the important default/permission caveat second. The opening is a noun phrase rather than a verb, but nothing is redundant.

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 correctly tells the agent what comes back (shifts plus rosters and roster weeks) and how drafts are marked. All five parameters are documented in the schema, and the permission boundary is stated, leaving no critical gap for a filtered read tool.

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

Parameters4/5

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

Schema coverage is 100%, so 3 is the baseline. The description goes beyond the schema by explaining the privilege requirement behind include_unpublished and the flag's effect on returned records (drafts labeled "published": false), which the schema text alone does not convey.

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 the resource precisely: rostered/scheduled shifts within a date range plus the rosters and roster weeks they belong to. The parenthetical '(scheduled)' implicitly separates this from worked-shift or timesheet tools, but no sibling is named explicitly, so differentiation relies on the agent inferring it.

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

Usage Guidelines3/5

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

Usage context is implied by the date-range and filter framing, and the admin/manager condition for include_unpublished is useful gating. However, there is no explicit when-to-use versus alternatives such as get_timesheets or get_live_status, which an agent must disambiguate on its own.

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