Skip to main content
Glama

Create a share link (set visibility)

create_share_link

Generate a shareable link to a scene you own and optionally set its visibility to public, unlisted, or private, so you can send or post it—or mint a revocable token link.

Instructions

Get a link to a scene the user owns, optionally changing who can open it. Use it when the user wants to send or post a scene, or change it to public, unlisted or private; to cut off a link use revoke_share_link; for website code use get_embed_code. Parameters: visibility 'unlisted' (anyone with the link; the default for new scenes), 'public' (also listed) or 'private' (opens only with a secret token); omit it to keep the current setting. new_token gives a revocable link without making the scene private. autoplay_tour starts the default camera tour on open. Side effects: changes the scene's visibility when visibility is given, and every token call creates another token. The token is shown only once; keep shareId to revoke it. Links never expire on their own. Requires sign-in (connector sign-in, or VERSE_API_KEY for the local server).

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": {
      "scene": "<scene>"
    },
    "name": "create_share_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
sceneYesScene id (e.g. palm-villa-0a1b2c3d4e5f), the job id returned by upload_scene, or a Verse share link.
new_tokenNoMint a fresh private share token even if the scene is not private (e.g. to hand out revocable links).
visibilityNoSet the scene's visibility first. Omit to keep it as is.
autoplay_tourNoOpen the link playing the scene's camera path (see list_camera_paths).

Output Schema

NameRequiredDescriptionDefault
linkYesThe link to share.
sceneYesScene id.
shareIdNoId of the minted token, for revoke_share_link.
visibilityNoThe scene's visibility after the call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.4
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "link": {
      +      "description": "The link to share.",
      +      "type": "string"
      +    },
      +    "scene": {
      +      "description": "Scene id.",
      +      "type": "string"
      +    },
      +    "shareId": {
      +      "description": "Id of the minted token, for revoke_share_link.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "visibility": {
      +      "description": "The scene's visibility after the call.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "scene",
      +    "link"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag a non-read-only, non-idempotent, open-world write, and the description adds materially: that visibility changes as a side effect, that each token call mints another token, that the token is shown only once, that links never expire, and that sign-in or VERSE_API_KEY is required. The only mild gap is that it doesn't say whether existing tokens are invalidated when visibility changes to private, but the operational disclosures are well above the annotation baseline.

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?

Front-loaded with the purpose and alternatives, then parameters, then side effects and auth in a logical order with no filler sentences. It is dense — the parameter run-on packs four clauses into one sentence — but nearly every clause carries operative information.

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?

Covers the auth requirement, the mutation side effects, token lifetime and one-time display, and the need to retain shareId for revocation. With an output schema present and full parameter documentation, nothing an agent needs to call this safely 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 100%, so the baseline is 3; the description earns a bump by explaining that 'unlisted' is the default for new scenes, that 'private' requires a secret token to open, and that omitting visibility preserves the current setting. It also clarifies new_token's purpose (revocable link without forcing private) beyond the schema's parenthetical.

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 a link to a scene the user owns') plus the optional scope of changing visibility, which is the surprising part of the operation. It also explicitly separates itself from revoke_share_link and get_embed_code, so an agent can pick it 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete triggers ('when the user wants to send or post a scene, or change it to public, unlisted or private') and routes two adjacent intents to the correct siblings: revoking to revoke_share_link and website embedding to get_embed_code. Both when-to-use and when-not-to-use are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.