Skip to main content
Glama

AI Source of Truth Evidence Rooms

Invite a person

invite

Invite a person to a case as investigator (case owners only), counsel or viewer. The answer holds the invite link, shown once; send it to the person. The invite lasts 14 days unless you set days (1 to 365). Set redacted_only to limit a viewer or counsel to redacted page images. Logged with the agent and the person it acts for. With the family critical classes on, an agent token is refused: a person invites in the browser. Scope: cases:write. REST twin: POST /api/cases/:id/invites. Errors: unauthorized, insufficient_scope, not_found, forbidden, consent_required, read_only, validation_error, payment_required.

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": {
      "case_id": "<case_id>",
      "email": "<email>",
      "role": "<role>"
    },
    "name": "invite"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow long the link works. Default 14.
roleYes
emailYesThe person's email address.
case_idYesThe case id (cas_...).
redacted_onlyNoViewer or counsel only: they see redacted page images and never the originals. Needs a plan with redaction.

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?

Beyond the annotations (readOnlyHint=false, openWorldHint=false), it discloses that the invite link is returned once and must be forwarded, the 14-day default lifetime, the audit logging of the acting agent and person, the cases:write scope requirement, and the full error taxonomy.

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?

Dense and front-loaded, leading with the action and roles before the lifetime and side-effect details. The trailing error-code list and REST twin are useful but read as appended boilerplate rather than integrated guidance.

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 5-parameter mutation with no output schema, the description covers what is returned (the one-time invite link), lifetime behavior, authorization and scope requirements, audit effects, and error conditions. Nothing essential to correct invocation is missing.

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 80%, so the schema already documents most fields, but the description adds meaning: the role-to-permission mapping (investigator = case owners only, redacted_only limited to viewer/counsel) and the days lifetime semantics. It largely restates the default and range already in the schema.

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 first sentence names the specific verb (invite) and resource (a person to a case) and enumerates the roles, with the investigator-only restriction called out. An agent can distinguish this from revoke_invite or accept_consent from the description alone.

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 gives explicit preconditions and exclusions: investigator invitations are case-owner only, redacted_only applies only to viewer/counsel, and when the family critical classes are on an agent token is refused so the invite must happen in the browser. That is a clear when-to-use and when-not-to-use statement.

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