Skip to main content
Glama

getVisit

Read-only

Get one visit by visitId. Get visitId from getVisits. 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": {
      "visitId": "<visitId>"
    },
    "name": "getVisit"
  }
}

Input Schema

NameRequiredDescriptionDefault
visitIdYesThe id of the visit.

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. Changed2 schema fields changed
    • 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.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds a genuinely useful anti-hallucination constraint ("Never invent UUIDs"), but says nothing further about miss behavior or lookup failure, and an output schema already covers return shape.

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 short sentences, front-loaded with the action, then the ID source, then the constraint. No redundant or filler wording.

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?

For a single-parameter read tool with full schema coverage, annotations, and an output schema, the description covers everything an agent needs: what it returns conceptually, where the ID comes from, and the constraint against fabricating one.

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, and the description earns a bump by documenting provenance for visitId ("Get visitId from getVisits"), which the schema's bare "The id of the visit." does not convey.

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?

States a specific verb and resource ("Get one visit") and identifies the lookup key (visitId), distinguishing it from the plural sibling getVisits by emphasizing single-item retrieval.

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?

Explicitly routes the agent to getVisits to obtain the required visitId, which is clear context for the prerequisite step. It lacks an explicit negative case (e.g., 'do not use for listing'), but the singular/plural split makes the boundary reasonably inferable.

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