Skip to main content
Glama
field-service-mcp

field-service-mcp

find_open_slots

Read-onlyIdempotent

Finds free windows within working hours that fit a visit of a given length on a specified day, optionally narrowed to one technician.

Instructions

Find free windows inside working hours that can fit a visit of the given length.

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": {
      "day": "<day>"
    },
    "name": "find_open_slots"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayYesDay to search (YYYY-MM-DD)
technician_idNo
duration_minutesNoLength of the visit to fit

Output Schema

NameRequiredDescriptionDefault
dayYes
slotsYes
workday_endYes
workday_startYes
duration_minutesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered. The description adds genuine context beyond that: results are restricted to working hours and are filtered to windows that can fit the requested length, which tells the agent the output is computed availability rather than raw records. It does not say how slots are bucketed, whether adjacent bookings or buffer times are considered, or what a null technician_id means behaviorally.

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?

One sentence with zero filler, and the key constraint (working hours) is front-loaded before the duration qualifier. It is efficient, though its terseness leaves the technician scoping question unaddressed.

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?

The tool is a simple read-only query with an output schema, so return-value detail is not required. However, for a three-parameter availability search the definition omits important call-shaping facts: what null technician_id does, what timezone working hours are evaluated in, and slot granularity.

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 67%: 'day' and 'duration_minutes' are already documented in the schema, and the description only restates the duration notion as 'the given length'. The undocumented technician_id is not clarified anywhere, so the agent cannot tell from the definition whether omitting it searches across all technicians or only the default one.

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 ('Find free windows') and scopes it to working hours plus a duration constraint, so the agent knows this is an availability query rather than a raw schedule read. It never contrasts itself with the sibling get_schedule, so sibling differentiation is left to inference.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not guidance, and no mention of when an agent should call this instead of get_schedule or list_visits. Usage is only vaguely implied by the scheduling vocabulary ('free windows', 'visit').

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