Skip to main content
Glama

getVisits

Read-only

List visits. Omit locationRef to list visits across all locations, newest visit date first, or provide it to scope to one location. Call getLocations to list locations, or getLocation to fetch one by locationId. Filter by userRefHost, by userRefVisitor, by date range (when the visit takes place), or by createDate 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": "getVisits"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoFilter by date (date). Provide gt, gte, lt, lte ISO datetimes.
limitNoMaximum number of visits per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
statusNoFilter by status: 'request' a visitor arrived without an invitation and waits for their host to approve, 'scheduled' the visitor has not arrived yet, 'checkedIn' the visitor is on site, 'checkedOut' they left, 'rejected' the host turned the request down, 'canceled' the visit was canceled. Defaults to scheduled, checkedIn, checkedOut. 'request' lists visit requests on their own, by the date they were made, and can't be combined with other statuses. Comma-separated, one or more of: request, scheduled, checkedIn, checkedOut, rejected, canceled.
endDateNoFilter by end date (endDate). Provide gt, gte, lt, lte ISO datetimes.
createDateNoFilter by create date (createDate). Provide gte, lte ISO datetimes.
locationRefNoUUID of the location whose visits to list. Omit to list visits across every location of the network, newest visit date first.
userRefHostNoUUID of the user hosting the visits to list.
nextPageTokenNoPagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page.
userRefVisitorNoUUID of the visiting user whose visits to list.

Output Schema

NameRequiredDescriptionDefault
visitsYes
nextPageTokenNoPass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / status
      Added value: +{
      +  "description": "Filter by status: 'request' a visitor arrived without an invitation and waits for their host to approve, 'scheduled' the visitor has not arrived yet, 'checkedIn' the visitor is on site, 'checkedOut' they left, 'rejected' the host turned the request down, 'canceled' the visit was canceled. Defaults to scheduled, checkedIn, checkedOut. 'request' lists visit requests on their own, by the date they were made, and can't be combined with other statuses. Comma-separated, one or more of: request, scheduled, checkedIn, checkedOut, rejected, canceled.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / visits / items / properties / code / description
      Previous value: -"Visit access code."New value: +"Visit access code. Absent while the visit is a request, and after it was rejected."
    • changedOutput schema / properties / visits / items / properties / createDate / description
      Previous value: -"ISO timestamp of when the visit was created."New value: +"ISO timestamp of when the visit was created, or requested."
    • changedOutput schema / properties / visits / items / properties / date / description
      Previous value: -"ISO timestamp of the scheduled visit date."New value: +"ISO timestamp of the scheduled visit date. For a visit request, when the visitor arrived and asked their host to approve."
    • addedOutput schema / properties / visits / items / properties / status
      Added value: +{
      +  "description": "Status of the visit: 'request' a visitor arrived without an invitation and waits for their host to approve, 'scheduled' the visitor has not arrived yet, 'checkedIn' the visitor is on site, 'checkedOut' they left, 'rejected' the host turned the request down, 'canceled' the visit was canceled.",
      +  "enum": [
      +    "request",
      +    "scheduled",
      +    "checkedIn",
      +    "checkedOut",
      +    "rejected",
      +    "canceled"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / visits / items / required
      Previous value: -[
      -  "code",
      -  "createDate",
      -  "customer",
      -  "date",
      -  "endDate",
      -  "id",
      -  "location",
      -  "locationRef",
      -  "userRefHost",
      -  "userRefVisitor",
      -  "visitor"
      -]New value: +[
      +  "createDate",
      +  "customer",
      +  "date",
      +  "endDate",
      +  "id",
      +  "location",
      +  "locationRef",
      +  "status",
      +  "userRefHost",
      +  "userRefVisitor",
      +  "visitor"
      +]
  2. Changed6 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"Filter by date (date). Provide gte, lte ISO datetimes."New value: +"Filter by date (date). Provide gt, gte, lt, lte ISO datetimes."
    • addedInput schema / properties / date / properties / gt
      Added value: +{
      +  "description": "Matches visits whose date is strictly after this datetime.",
      +  "format": "date-time",
      +  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +  "type": "string"
      +}
    • addedInput schema / properties / date / properties / lt
      Added value: +{
      +  "description": "Matches visits whose date is strictly before this datetime.",
      +  "format": "date-time",
      +  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +  "type": "string"
      +}
    • addedInput schema / properties / endDate
      Added value: +{
      +  "description": "Filter by end date (endDate). Provide gt, gte, lt, lte ISO datetimes.",
      +  "properties": {
      +    "gt": {
      +      "description": "Matches visits whose end date is strictly after this datetime.",
      +      "format": "date-time",
      +      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +      "type": "string"
      +    },
      +    "gte": {
      +      "description": "Matches visits whose end date is on or after this datetime.",
      +      "format": "date-time",
      +      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +      "type": "string"
      +    },
      +    "lt": {
      +      "description": "Matches visits whose end date is strictly before this datetime.",
      +      "format": "date-time",
      +      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +      "type": "string"
      +    },
      +    "lte": {
      +      "description": "Matches visits whose end date is on or before this datetime.",
      +      "format": "date-time",
      +      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / visits / items / properties / endDate
      Added value: +{
      +  "description": "ISO timestamp of when the visit ends and its code expires. For a visit created without an end date, the end of the visit date's day in the location timezone.",
      +  "format": "date-time",
      +  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +  "type": "string"
      +}
    • changedOutput schema / properties / visits / items / required
      Previous value: -[
      -  "code",
      -  "createDate",
      -  "customer",
      -  "date",
      -  "id",
      -  "location",
      -  "locationRef",
      -  "userRefHost",
      -  "userRefVisitor",
      -  "visitor"
      -]New value: +[
      +  "code",
      +  "createDate",
      +  "customer",
      +  "date",
      +  "endDate",
      +  "id",
      +  "location",
      +  "locationRef",
      +  "userRefHost",
      +  "userRefVisitor",
      +  "visitor"
      +]
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so safety needs no restating. The description adds behavior the annotations cannot convey: default ordering is newest visit date first, and filtering is additive across host, visitor, date, and createDate. It does not discuss result volume or pagination flow, which is a modest gap.

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?

Three sentences, front-loaded with the operation and its scoping rule, then the reference-tool routing, then the filter inventory. Nothing is repeated from the schema and no sentence is filler.

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

Completeness5/5

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

With an output schema present and 100% parameter description coverage, the description only needs to carry scope, ordering, and filter framing, all of which it does. For a read-only, zero-required-parameter list tool, an agent has everything needed to call it correctly.

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 100%, so the baseline is 3, but the description genuinely disambiguates the three date-shaped filters by glossing date as "when the visit takes place" and contrasting it with createDate. That resolves ambiguity the schema's own near-circular "Filter by date (date)" text leaves open.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"List visits" gives a specific verb plus resource, and the following sentences immediately qualify scope (all locations vs. one location) and ordering. An agent can distinguish this from getLocation/getLocations without opening a schema, since those are named as reference lookups rather than list operations.

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

Usage Guidelines4/5

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

The description states the conditional rule clearly: omit locationRef to span all locations, provide it to scope to one. It also routes the agent to getLocations/getLocation for resolving a locationId, which is a real prerequisite. It stops short of explicit when-not-to-use guidance (e.g. paging vs. re-querying), so it is strong but not exhaustive.

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