Skip to main content
Glama

create_share_link

Destructive

Create, change or revoke a report's share link. create makes the link or keeps the existing one and applies the settings given; update changes it; revoke deletes it so its URL stops working for good (a later create gives a new URL). Settings: enabled (false keeps the link, viewers see "not available"), password (at least 8 characters; sets or replaces; null removes; stored hashed, never returned; 10 wrong guesses lock the password check for 15 minutes, and setting a new password resets that), allowDateChange (true lets viewers pick other periods and see data beyond the report's own range). Anyone with the link can open the report with every widget, its live numbers and the saved AI summaries, after the password if one is set. A report in Deleted cannot be shared. Returns the share URL. It does not e-mail the link (send_report does). Requires MCP write actions; without confirm:true it returns a preview of what becomes public.

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

Input Schema

NameRequiredDescriptionDefault
actionYescreate (or keep) the link, update its settings, or revoke it.
confirmNoSet true to apply. Omit for a preview. With confirm:true, also pass the preview's previewToken.
enabledNoWhether the link opens the report.
passwordNoSet a password viewers enter (at least 8 characters); null removes it. Not echoed back.
reportIdYesReport id (from list_reports).
previewTokenNoWith confirm:true: the previewToken from this tool's preview (valid 15 minutes, once, for exactly the previewed arguments).
allowDateChangeNoLet viewers switch the report's period.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / password / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 200,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 200,
      +    "minLength": 8,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / password / description
      Previous value: -"Set a password viewers enter; null removes it. Not echoed back."New value: +"Set a password viewers enter (at least 8 characters); null removes it. Not echoed back."
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed1 schema field changed
    • changedInput schema / properties / password / description
      Previous value: -"Set a password viewers must enter; null removes it. Never echoed back."New value: +"Set a password viewers enter; null removes it. Not echoed back."
  4. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag mutation and destructiveness, but the description adds what is actually destroyed ('the URL stops working for good, a later create gives a new URL'), what becomes public ('every widget, its live numbers and the saved AI summaries'), and the auth/lockout profile (hashed password never returned, 10 wrong guesses lock for 15 minutes). The gated write behavior ('requires MCP write actions; without confirm:true it returns a preview') is disclosed rather than left to be discovered.

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 action decomposition, then settings, then visibility, then constraints — a logical order with no filler sentences. It is dense and long for a single paragraph, but every clause carries a fact an agent needs; only minor tightening (e.g. the parenthetical asides) would improve readability.

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 destructive, open-world mutation tool this covers the full decision surface: action semantics, settings behavior, public exposure, prerequisite permissions, preview/confirm flow, and the return value ('Returns the share URL'). With no output schema present, naming the return explicitly closes the last gap.

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

Parameters5/5

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

Schema coverage is already 100%, yet the description still adds meaning: enabled=false keeps the link alive but shows viewers 'not available', password must be 8+ characters, is set-or-replaced, null removes it, and setting a new one resets the lockout. allowDateChange is explained in terms of its consequence (viewers see data beyond the report's own range), which the schema does not convey.

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-plus-resource ('Create, change or revoke a report's share link') and immediately decomposes it into the three named actions, each with its own effect. An agent can distinguish this tool from send_report or the create_* siblings 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?

Explicitly routes the agent: 'create' makes or keeps the link, 'update' changes it, 'revoke' deletes it, and e-mailing is handled by send_report instead. It also names the when-not condition (a report in Deleted cannot be shared) and the preview/confirm prerequisite, which is more guidance than most definitions supply.

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