Skip to main content
Glama

api_hr_shift_rest

Read-onlyIdempotent

Find overlapping work shifts, shift duration and gaps shorter than a caller-defined rest requirement. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": {
      "shifts": "<shifts>",
      "min_rest_hours": "<min_rest_hours>"
    },
    "name": "api_hr_shift_rest"
  }
}

Input Schema

NameRequiredDescriptionDefault
shiftsYesComma-separated startISO/endISO shifts with local clock YYYY-MM-DDTHH:mm
min_rest_hoursYesMinimum hours between shifts set by client

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely new operational context the annotations cannot convey: a per-call cost of 0.01 USDC on Base x402 and the X-Provider-Key header for customer-owned provider credentials.

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, purpose front-loaded and payment/auth details trailing. Nothing is redundant, though the cost/credential clause is compressed enough that its operational meaning takes a second read.

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

Completeness3/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 saying what comes back, and it only gestures at it ('find overlapping shifts, duration, gaps'). An agent knows the inputs and the price but not the response shape or how violations are reported, which is a meaningful gap for a computation tool.

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%, so both parameters are already documented with types and formats. The description reinforces that min_rest_hours is caller-defined but adds no syntax or format detail beyond what the schema supplies, so the baseline 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 states a specific verb and resource: it finds overlapping shifts, shift durations, and rest gaps below a caller-supplied minimum. That is far more precise than the name alone, though it never contrasts itself with any other tool.

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?

The use case (checking shift overlap and rest compliance) is implied by the described output, but there is no explicit when-to-use guidance, no prerequisites, and no named alternative among the many api_hr_* siblings.

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