Skip to main content
Glama

Field Service Business Platform by Doing Work

visits_create

Book a visit to a job at a time, optionally with the workers going (assignee_ids, a saved crew_id, or both). Overlaps for those workers come back in conflicts.

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>",
      "starts_at": "<starts_at>",
      "ends_at": "<ends_at>"
    },
    "name": "visits_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
titleNo
job_idYes
crew_idNo
ends_atYes
priorityNonormal (default), urgent or emergency. Urgent and emergency visits send visit.priority_set and can use dispatch.suggest.
starts_atYes
assignee_idsNo
arrival_window_minutesNoArrival window in minutes: the customer is told the worker arrives between starts_at and starts_at plus this. Defaults to the shop's setting (schedule.setRules).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / crew_id
      Added value: +{
      +  "format": "uuid",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish that this is a non-destructive write with no open-world access, so the description's main added value is the conflict-reporting behavior and the crew/assignee combination rule. It leaves important behaviors unclear: whether conflicts block creation, whether the visit is still booked, and what permissions are required.

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 tight sentences, front-loaded with the core action and then the optional assignment and conflict behavior. No filler or repetition.

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?

For a 9-parameter creation tool with no output schema, the description covers the booking action and conflict signal but not the response shape, conflict semantics, or how scheduling failures behave. It is adequate but leaves an agent guessing about important post-call behavior.

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 only 22%, so the description needs to carry more weight; it usefully explains that assignee_ids and crew_id are optional and may be combined. However, it says nothing about starts_at/ends_at semantics, what happens when both crew and assignees are supplied, or how notes/title are treated.

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 ('Book a visit to a job at a time'), so an agent knows this creates a single scheduled visit. It implicitly contrasts with recurring scheduling by saying 'at a time', but never names visits_createRecurring or other creation alternatives explicitly.

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?

It clarifies that worker assignment is optional and can come from assignee_ids, a saved crew_id, or both, which is real usage guidance for this call. It gives no when-to-use vs. alternatives guidance and no exclusions, such as when to prefer visits_createRecurring or visits_assign.

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.