Skip to main content
Glama

approveVisitorsRequest

Destructive

Approve a visit request, which schedules the visit for today and emails the visitor their access code. Returns the scheduled visit with the code. Only the host of the request can approve it: a request hosted by anyone other than the user who connected this assistant is not found. Get requestId from getVisitorsRequests. 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": {
      "requestId": "<requestId>"
    },
    "name": "approveVisitorsRequest"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestIdYesThe id of the visit request.

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.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description does not need to establish that this mutates state. It adds genuine value beyond them: the two side effects (scheduling for today, emailing an access code), the returned payload, and the authorization rule that a non-host's request surfaces as "not found." It does not address whether an approval can be undone, which keeps it from a 5.

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?

Four short sentences, front-loaded with the action and its effects, followed by the authorization constraint and the id-provenance rule. Every sentence carries distinct information and nothing is repeated from the schema or annotations.

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 mutation with an output schema, the description covers the action, side effects, authorization boundary, and parameter provenance, and briefly notes the return value. An agent has everything needed to decide to call it and to construct a valid call.

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 there is only one parameter, so the schema already defines requestId. The description still adds non-obvious meaning: the value must be obtained from getVisitorsRequests and must never be fabricated, which is provenance guidance the schema cannot express.

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 ("Approve a visit request") and immediately states the concrete effects: the visit is scheduled for today and the visitor is emailed an access code. That level of specificity lets an agent distinguish it from the read-oriented siblings (getVisitorsRequests, getVisitorsRequest) and from rejectVisitorsRequest without opening any schema.

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?

It gives clear operating context: only the host can approve, and requestId must come from getVisitorsRequests rather than being invented. It stops short of explicitly naming rejectVisitorsRequest as the alternative for the negative case, so the routing guidance 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