Skip to main content
Glama
field-service-mcp

field-service-mcp

list_visits

Read-onlyIdempotent

Retrieve service visits in chronological order and filter them by job, technician, or an inclusive date range to review scheduled or completed field work.

Instructions

List visits, earliest first. Filter by job, technician and an inclusive date range.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_visits"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum records to return
job_idNo
offsetNoRecords to skip, for paging
date_toNoLast day to include (YYYY-MM-DD)
date_fromNoFirst day to include (YYYY-MM-DD)
technician_idNo

Output Schema

NameRequiredDescriptionDefault
itemsYes
limitYes
totalYesTotal matching records in the vendor system
offsetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, open-world safety profile. The description adds genuinely non-schema behavior: results are returned earliest-first and the date range is inclusive at both ends, which materially affects filtering. It omits whether results are paginated by default, but limit/offset are documented in the schema.

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, no waste, with the identification of the resource and ordering front-loaded and the filter axes second. Every clause carries information.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values need not be explained, and all six parameters are optional filters that the description or schema covers. The only remaining gap is pagination expectations for large result sets, which is minor here.

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%, with limit and offset documented in the schema itself. The description names the job, technician, and date-range filters, giving minimal context for job_id and technician_id which lack schema descriptions, but adds no format or matching semantics beyond that. Baseline 3 is appropriate.

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 ('List visits') plus a sort order ('earliest first'), which no sibling shares. It is clear what the tool returns, though it does not explicitly contrast itself with neighboring list tools or get_schedule.

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 names the three available filter axes (job, technician, inclusive date range), which implies how the tool is meant to be used for narrowing results. However, it never states when to choose this over get_schedule, list_jobs, or similar siblings, nor any prerequisites.

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