Skip to main content
Glama

createVisit

Register an expected visitor for a location, hosted by the user who connected this assistant. Returns the created visit with the access code the visitor checks in with; the visitor is also emailed the code. date is an ISO datetime and cannot be in the past: convert the day and time the user gave from the location's timezoneId. The location must have visitors turned on. To register a visitor for a member as host, use createVisitorsRequest instead. Call getLocations to list locations, or getLocation to fetch one by locationId. Never invent UUIDs; only use values from prior tool responses.

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": {
      "visit": "<visit>"
    },
    "name": "createVisit"
  }
}

Input Schema

NameRequiredDescriptionDefault
visitYesVisit to create.

Output Schema

NameRequiredDescriptionDefault
visitYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedOutput schema / properties / visit / 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 / visit / 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 / visit / 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 / visit / 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 / visit / 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. Changed3 schema fields changed
    • addedInput schema / properties / visit / properties / endDate
      Added value: +{
      +  "description": "ISO timestamp of when the visit ends, after the visit date. The visitor can check in with the same code until then, on every day of the visit. A visit lasts up to 31 days. Defaults to 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"
      +}
    • addedOutput schema / properties / visit / 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 / visit / 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.9/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=false and openWorld=false; the description goes well beyond that by disclosing the side effect of emailing the access code to the visitor, the returned access code, the rule that date cannot be in the past, the required timezone conversion, and the location capability prerequisite.

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?

The purpose and side effect lead, followed by constraints, alternatives, and ID resolution guidance in tight successive sentences. Every sentence carries actionable information with no 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?

Despite a nested single-parameter schema and a mutation side effect, the description covers purpose, prerequisites, timezone handling, ID provenance, and the sibling alternative; the return payload is backed by an output schema and is only summarized as needed.

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% and the nested visit object is well documented, so the baseline is 3; the description adds genuine meaning on top by specifying that date is an ISO datetime that cannot be in the past and must be converted from the location's timezoneId. It does not add anything for comment, endDate, or the visitor sub-fields beyond what the schema already states.

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?

The description opens with a specific verb and resource ('Register an expected visitor for a location') and immediately scopes the host to the connected user. It explicitly distinguishes itself from createVisitorsRequest, so an agent can route between the two without opening either schema.

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

Usage Guidelines5/5

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

It names the alternative tool and the condition that selects it (member as host), states a hard prerequisite ('The location must have visitors turned on'), and points to getLocations/getLocation for resolving the location ID. It even tells the agent how to obtain valid UUIDs rather than inventing them.

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