Skip to main content
Glama

Change a tracked link's settings

update_share
DestructiveIdempotent

Changes the settings of a tracked link that has already been sent, on the same link: who can open it (allowed domains and addresses), the email gate and its one-time code, the password, the end date, the copy lock, the label, who the gate names and whether the sender is emailed on the first open. Comments can be on or off; enabling needs a code-confirmed email gate. The answer includes the saved rules. The link, its address and its whole reading history stay the same. Only the settings named in the call change; every other setting is left as it is, and a setting is removed when it is named in clear (a recipient_label of only spaces also removes the label). The list arguments add_allowed_emails, remove_allowed_emails, add_allowed_email_domains and remove_allowed_email_domains: the server merges them over the stored list and says what was added, removed and not found. Replacing or clearing a whole list (sending allowed_emails or allowed_email_domains, or naming one in clear) needs expected_settings_version, the settings version get_share returned, so a change made since is never overwritten. A stale version is refused without saving. A change applies from the next time the page is loaded: someone reading it right now keeps the page they have until they reload. If the sender is on a company team, the team's rules apply to this change exactly as on the website (for example a required one-time code or company domains), and a change that breaks one is refused with the rule named. Narrowing who can open a link, or removing a list, changes what recipients can see.

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": {
      "share_id": "<share_id>"
    },
    "name": "update_share"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoSettings to remove: the label, the password, the end date, the domain list, the address list. Removing a list lets anyone who passes the email gate in. A setting that is not named here or above is left exactly as it is.
commentsNoWhether readers can comment. Omitted keeps the current choice. Turning comments on needs the email gate and a one-time code; who sees comments follows the link.
passwordNoA password of at least 8 characters on top of the email gate. `clear` removes it.
share_idYesThe link's share id, slug (the part after /r/), or full address.
lock_deckNoThe copy lock: true blocks save and print; false allows them.
expires_atNoWhen the link stops working, as a date and time such as 2026-12-31T17:00:00Z. Mutually exclusive with `expires_in_hours`. `clear` removes the end date.
show_senderNoWho the gate names to the reader: nobody, the sender's company, or the sender's name. The company needs a work sign-up address; the name needs one set in Settings.
verify_emailNoWhether the one-time-code check is on: the reader receives a six-digit code and opens the document only when they type it back. Needs the email gate on.
require_emailNoWhether the email gate is on. Turning it off removes the check that the list of allowed domains and addresses relies on; those lists must be cleared in the same call.
allowed_emailsNoOnly these exact addresses may open the link. A separate list from the domains; a visitor passes on either. This REPLACES the whole stored list, so entries absent from this value are removed. `clear` removes the list. Needs the email gate on.
show_watermarkNoShow a faint watermark when lock_deck is true. Defaults to true on creation; omitted on edit keeps the saved choice.
recipient_labelNoA new label for who this link is for, e.g. "Acme".
expires_in_hoursNoThe link stops working this many hours from now. Mutually exclusive with `expires_at`.
notify_first_openNoWhether the sender is e-mailed when someone reads this link.
add_allowed_emailsNoAddresses to ADD to the stored list of allowed addresses. The server merges them over the list as it is now, so nothing has to be copied back. Needs the email gate on.
allowed_email_domainsNoOnly these email domains may open the link, e.g. ["acme.com"]. This REPLACES the whole stored list, so entries absent from this value are removed. `clear` removes the list. Needs the email gate on.
remove_allowed_emailsNoAddresses to REMOVE from the stored list of allowed addresses. The answer says which were not on the list. Removing the last entry of every list is refused; `clear` removes a whole list.
add_allowed_email_domainsNoDomains to ADD to the stored list of allowed domains, merged on the server.
expected_settings_versionNoThe settings version get_share showed. The change is made only if the link is still at that version; if the settings changed since they were read, nothing is changed and the call returns the current settings version. Required when a whole allowed-address or allowed-domain list is replaced or cleared.
remove_allowed_email_domainsNoDomains to REMOVE from the stored list of allowed domains, merged on the server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the link, address, and reading history stay the same; that only named settings change; that `clear` removes settings; that list additions/removals are merged server-side; that replacing or clearing whole lists requires the expected settings version; and that stale versions are refused without saving. It further explains that changes apply on the next page load, not to current readers, and that company team rules can refuse a change with the rule named.

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 purpose is front-loaded and nearly every sentence carries relevant behavioral or constraint information for a 20-parameter mutation. It is dense but appropriately sized for the complexity, though the long paragraph format makes some rules harder to scan than they could be.

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?

Given 20 parameters, full schema coverage, no output schema, and destructive/idempotent/open-world annotations, the description is complete enough for correct invocation. It covers preservation of identity and history, partial-update semantics, list merge and clear rules, concurrency versioning, team-policy refusal, and timing of effect.

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 schema already documents parameters thoroughly and the baseline is 3. The description still adds meaningful cross-parameter semantics: comments requiring a code-confirmed email gate, list merge behavior for add/remove arguments, version requirements for replacing or clearing lists, and the fact that a blank `recipient_label` removes the label. These details go beyond isolated schema descriptions.

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 description opens with a specific verb and resource: 'Changes the settings of a tracked link that has already been sent, on the same link.' The 'already been sent' and 'same link' scoping distinguishes it from creating or revoking a link, so an agent can identify its role without opening the 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?

It gives clear context for when to use this tool: editing an existing tracked link and changing only named settings. It also explains how to use `clear` for removals and references `get_share` for the settings version. It stops short of explicitly naming sibling alternatives such as create_share or revoke_share, so it lacks complete when-not guidance.

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.