Skip to main content
Glama

create_invite_link

Creates a shareable invite link (/join/) for a project — the same mechanism as the app's own 'Share' button. Requires a GOVERNING role (owner or manager) — matches POST /api/projects/[id]/shares/token since 2026-08-19. Optional role ('viewer' default, or 'editor') and allowGuests (default true — lets people join without creating an account).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_invite_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoRole granted to the people who join through this link (default: viewer).
projectIdNoUUID of the project to share. Defaults to the project of the call (expectedProjectId, or the X-Project-Id header).
allowGuestsNoIf true (default), visitors can join without an account (temporary guest session).
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed1 schema field changed
    • changedInput schema / properties / projectId / description
      Previous value: -"UUID of the project to share. Defaults to the session's active project."New value: +"UUID of the project to share. Defaults to the project of the call (expectedProjectId, or the X-Project-Id header)."
  4. Changed4 schema fields changed
    • changedInput schema / properties / allowGuests / description
      Previous value: -"Si true (défaut), les visiteurs peuvent rejoindre sans compte (session invité temporaire)."New value: +"If true (default), visitors can join without an account (temporary guest session)."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / projectId / description
      Previous value: -"UUID du projet à partager. Par défaut, le projet actif de la session."New value: +"UUID of the project to share. Defaults to the session's active project."
    • changedInput schema / properties / role / description
      Previous value: -"Rôle accordé aux personnes qui rejoignent via ce lien (défaut: viewer)."New value: +"Role granted to the people who join through this link (default: viewer)."
  5. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (which only declare it is a non-read-only, non-destructive, closed-world write), the description discloses the authorization requirement and that allowGuests=true creates no-account guest access — a security-relevant consequence an agent should know before calling. It does not cover link expiry, revocation, or whether repeated calls produce multiple links.

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?

One front-loaded sentence delivering purpose, URL form, precondition, and parameter defaults with no filler. The em-dash parentheticals make it dense but still parseable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still conveys the return shape (/join/<token>) and the privilege model, which is enough to call the tool correctly. Missing only lifecycle details such as link expiry or revocation for full completeness on a sharing tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents role defaults, allowGuests semantics, and projectId fallback; the description largely restates those defaults rather than adding syntax or edge-case rules. Baseline 3 for a fully covered 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?

States a specific verb and resource (creates a shareable invite link for a project), gives the concrete URL shape (/join/<token>), and anchors it to the app's own 'Share' button so an agent can distinguish it from create_api_key or create_project without opening a 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?

Gives a clear precondition (GOVERNING role — owner or manager) and ties it to a specific endpoint contract, which tells the agent when the call will succeed. It stops short of naming alternatives or scenarios where a different sharing tool should be preferred.

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.