Skip to main content
Glama

Create a shareable connection link

create_share_link

Creates a link (url) that lets whoever manages the DNS (an agency, the IT team) connect the given domains with the given records, without the application secret. The link is bound to those domains and records, single-use per domain by default (maxUses) and expires in 7 days by default (expiresInDays, at most 30). Returns the url, which carries a token returned only in this answer, and the share_link_id. Connections started from the link are listed like any other, with that share_link_id.

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

Input Schema

NameRequiredDescriptionDefault
labelNoYour own note, never shown on the link page.
userIdNoYour own user id, echoed in the job and its webhooks.
domainsYesThe domains the link may connect.
maxUsesNoConnections each domain may start through the link.
dnsRecordsYesRecords your product needs. host is relative to the zone; placeholders {DOMAIN}, {SUBDOMAIN}, {SLD}, {TLD}; @ is the apex (no CNAME at the apex).
expiresInDaysNoDays until the link expires.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / domains / description
      Added value: +"The domains the link may connect."
    • addedInput schema / properties / expiresInDays / description
      Added value: +"Days until the link expires."
    • changedInput schema / properties / userId / description
      Previous value: -"Your user id, echoed in jobs and webhooks."New value: +"Your own user id, echoed in the job and its webhooks."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial behavior beyond annotations: the link is bound to the given domains and records, is single-use per domain by default, defaults to a 7-day expiry capped at 30, and the token is returned only in this response and never again. This 'shown once' warning is exactly the kind of non-obvious trait annotations cannot convey. It stops short of 5 only because it doesn't address revocation lifecycle (left to revoke_share_link) or failure cases.

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?

Three dense sentences, front-loaded with the core purpose, then behavior, then return value. The parenthetical stacking ('(maxUses)', '(expiresInDays, at most 30)') is compact rather than wasteful. Minor cost: heavy nesting makes it slightly harder to scan.

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?

No output schema exists, and the description compensates by naming the returns (url, share_link_id) and flagging the one-time token. For a creation tool with 6 params at full schema coverage and non-destructive annotations, nothing an agent needs before calling is missing.

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 defaults, ranges, and field meanings are already documented. The description reinforces maxUses ('single-use per domain by default') and expiresInDays ('7 days ... at most 30'), but says nothing about label or userId — the parameters whose purpose is least self-evident. Baseline 3 is appropriate.

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 link (url)') and immediately defines the mechanism that distinguishes it from direct-connection siblings: the recipient connects domains to records 'without the application secret'. An agent can tell this apart from connect_domain or connect_domain_automatic 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 Guidelines4/5

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

Provides clear usage context by naming the actor ('whoever manages the DNS (an agency, the IT team)'), which implies when to use this over a direct connect call. It does not explicitly name alternatives or state exclusions, so it falls short of a full when/when-not treatment.

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