Skip to main content
Glama

Create a link

create_link

Make a short link. Only url is required: the domain defaults to the organisation’s own verified domain, else the shared default, and the back-half is generated unless slug is given. Answers the new link’s id and short URL. A field the form does not know is refused, never ignored.

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": {
      "url": "<url>"
    },
    "name": "create_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe destination: a public http(s) URL.
pathNoA path in front of the back-half (a plan feature).
slugNoA chosen back-half (letters, digits, - and _); blank for a generated one.
tagsNoTags as "kind:name" tokens (kinds: PERSON, TEAM, CAMPAIGN, CHANNEL, PRODUCT, REGION, CUSTOM); a bare name is CUSTOM. At most 10.
titleNoThe link’s name, shown above the back-half and found by the list’s search.
domainNoOne of list_domains; blank for the default.
liveOnNoWhen it starts answering: an ISO 8601 instant; blank or now makes it live at once. Fixed once live.
maskedNoMasked link: show the destination in a frame under the short link’s address instead of redirecting (a plan feature; own domains only; the destination must be https and allow framing).
expiresNoWhen the link stops answering: an ISO 8601 instant (UTC).
ogImageNoThe preview image, an https URL.
ogTitleNoThe preview title a chat or social app shows (a plan feature).
generateNoHow to draw a generated back-half, where the domain allows a choice.
passwordNoProtect the link with a password (a plan feature).
utm_termNoUTM term.
maxClicksNoA click limit; the link expires once it is reached.
utm_mediumNoUTM medium.
utm_sourceNoUTM source added to the destination.
utm_contentNoUTM content.
utm_campaignNoUTM campaign.
ogDescriptionNoThe preview description.
idempotency_keyNoAny unique value of yours (a UUID): a retry with the same value and the same arguments within 24 hours answers the first call’s result again instead of making a second link or change. The same value with other arguments is refused.
trackConversionsNoCarry the click id to the destination for event reports (a plan feature).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses return values (id and short URL), default-resolution order for domain and back-half, and — importantly — that unrecognised fields are rejected rather than silently dropped (additionalProperties: false). It omits permission requirements, rate limits, and error behaviour beyond unknown fields, keeping it short of a 5.

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?

Four sentences, front-loaded with the one thing the caller must know (only url required) before defaults and the return value. "A field the form does not know is refused, never ignored" is slightly jargon-y and could be plainer, but every sentence carries information no other field supplies.

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?

For a 22-parameter create tool with no annotations and no output schema, the description covers the essentials an agent needs: required input, defaulting behaviour, the returned id/short URL, and strict input validation. It stops short of documenting failure modes for the many optional fields or any plan-gated restrictions the schema hints at.

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 already 100% across 22 parameters, so the baseline is 3, and the description earns above that by explaining coupled semantics the per-field text does not: url-only sufficiency, the domain-then-back-half default chain, and slug overriding generation. It does not touch the larger optional surface (tags, utm_*, masked, idempotency_key), which the schema already handles.

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?

"Make a short link" gives a specific verb and resource, and the description immediately pins down scope: only url is required, domain falls back to a verified default, and the back-half is generated unless slug is supplied. It is unmistakably the creation counterpart to update_link/set_link_status named in the sibling list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

It tells the agent the minimum viable call (url alone) and how domain and slug defaults resolve, which is real usable guidance. But it never states when to reach for this versus update_link for an existing link, or that check_back_half/list_domains may be worth calling first — the agent has to infer those routes.

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