Skip to main content
Glama
field-service-mcp

field-service-mcp

create_visit

Book a technician on a job for a specific time window, with optional notes. Fails if the technician is already booked during that window.

Instructions

Book a technician on a job for a time window. Fails if the technician is already booked then.

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": {
      "job_id": "<job_id>",
      "technician_id": "<technician_id>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "create_visit"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesLocal end, no UTC offset, after start
notesNo
startYesLocal start, no UTC offset, e.g. 2030-01-07T09:00:00
job_idYes
technician_idYes

Output Schema

NameRequiredDescriptionDefault
idYes
endYes
notesNo
startYes
job_idYes
statusYes
technician_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-idempotent, non-destructive write to an open world, so the safety profile is covered. The description adds genuine value by disclosing the double-booking failure condition, but does not say whether that failure is atomic (nothing created) or whether conflicts return a structured error, which matters for a mutating call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, with the primary action front-loaded and the failure condition second. No filler, and each sentence contributes distinct information.

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?

An output schema exists, so return values need no explanation, but for a five-parameter mutation with only 40% schema coverage the description leaves gaps: the notes parameter is undocumented everywhere, and the timezone handling is only implied by the schema. Adequate but short of complete for a booking operation.

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 40%, with job_id, technician_id and notes undocumented, so the description must carry weight. It does establish the relationship between technician, job and the start/end window, but it adds nothing about notes or about identifier formats beyond what the schema shows.

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 concrete verb and resources: "Book a technician on a job for a time window," which maps cleanly to technician_id, job_id, start and end. It is clear what the tool creates, though the description never uses the word "visit," so the link to the tool name and to list_visits/get_schedule is left implicit.

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 guidance on when to use this versus the available alternatives, notably find_open_slots for checking availability before booking, or the prerequisite that a job must already exist via create_job. The conflict-failure sentence hints that a free technician is required, but this is inference rather than stated guidance.

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