Skip to main content
Glama

createVisitorsRequest

Create a visit request on behalf of a member, who becomes the host and is notified to approve or reject it; the visit is scheduled only once the host approves. Returns the created request. request.userRefHost is the user.id of a getCustomers result of type "user", never its id and never a company. The host must be a member of that location, and the location must have visitors turned on. To register a visitor directly, hosted by the user who connected this assistant, use createVisit 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": {
      "request": "<request>"
    },
    "name": "createVisitorsRequest"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesVisit request to create.

Output Schema

NameRequiredDescriptionDefault
requestYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, non-destructive, closed-world write. The description goes well past that: it discloses the approval workflow and its consequence (nothing is scheduled until the host approves), preconditions the server will enforce (host must be a member of the location; visitors must be enabled there), and that the created request is returned. That is meaningful behavioral context an agent cannot infer from the annotation flags.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and its approval consequence are front-loaded, followed by the id-sourcing rule and the createVisit alternative. Every sentence carries information, though the block is dense and the clause about getCustomers id provenance is compressed enough to need a second read.

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 mutating tool with nested input and preconditions, the definition covers purpose, gating conditions, id provenance, the alternative tool, and prerequisite lookups, while an output schema already documents the return value. An agent has everything needed to call it correctly without guessing.

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 nested visitor fields are already documented, so the schema carries most of the load. The description still adds real meaning for userRefHost — it must be the user.id from a getCustomers result of type "user" and not a company id — which is a mapping rule the schema cannot express. The phrasing 'never its id' is slightly ambiguous, but the intended constraint on id provenance is clear.

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 ('Create a visit request') plus the scope ('on behalf of a member, who becomes the host'). Crucially, it also explains the resulting lifecycle — the host is notified to approve or reject, and the visit is only scheduled on approval — which separates it cleanly from createVisit, the direct-registration sibling.

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?

Gives explicit routing: 'To register a visitor directly... use createVisit instead', plus the prerequisite lookups (getLocations to list, getLocation to fetch by locationId). It also states a hard rule not to invent UUIDs and to source values only from prior tool responses, which is exactly the kind of guidance an agent needs before calling a create tool.

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