Skip to main content
Glama

Create a DexURL short link

create_link

Create a short link. Free: a destination, title, click cap, expiry (up to 24 hours) and fallback address. Pro: slugPrefix (readable link text), oneTime, password, and the rules families below; the API says so when it refuses. destinationUrl is always required. With a choice page or board visitors see the options instead of being sent to it, with routing it is where visitors go when no rule matches and routing.defaultUrl is empty, and it is the link's main address in the library. A slugPrefix address always ends in 6 generated characters (spring-sale becomes spring-sale-k7m2q9). There are no tags: to compare channels (newsletter, Instagram, flyer) create one link per channel and name the channel in the title; find_links searches titles. Time: availability and routing time windows are read in their own timeZone (0 = Sunday); routing rules of type weekday and hour use UTC. qrUrl is the address the link's QR code contains (scanning it opens the link); it is not an image; open manageUrl to see or download the QR code. Examples: schedule: {"destinationUrl":"https://example.com/menu","rules":{"availability":{"timeZone":"Europe/Paris","weekdays":[1,2,3,4,5],"startMinutes":540,"endMinutes":1020}}} notice: {"destinationUrl":"https://example.com/partner","rules":{"redirectNotice":{"title":"Leaving DexURL","message":"You are going to our partner."}}} routing rules: {"destinationUrl":"https://example.com/web","rules":{"routing":{"defaultUrl":"https://example.com/web","rules":[{"type":"device","match":"ios","destinationUrl":"https://example.com/ios"}]}}} routing windows: {"destinationUrl":"https://example.com/day","rules":{"routing":{"windows":[{"timeZone":"UTC","weekdays":[0,1,2,3,4,5,6],"startMinutes":0,"endMinutes":720,"destinationUrl":"https://example.com/morning"}]}}} choice page: {"destinationUrl":"https://example.com/pick","rules":{"choiceOptions":[{"label":"Shop","destinationUrl":"https://example.com/shop"},{"label":"Blog","destinationUrl":"https://example.com/blog"}]}} multi-link board: {"destinationUrl":"https://example.com/links","rules":{"boardTitle":"Find us","destinations":[{"label":"Site","destinationUrl":"https://example.com"},{"label":"Docs","destinationUrl":"https://example.com/docs"}]}}

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

Input Schema

NameRequiredDescriptionDefault
rulesNoLink rules.
titleNoA name for your library. Never shown to visitors.
oneTimeNoWorks once. Pro.
passwordNoVisitors must enter it. Pro.
maxClicksNoStops working after this many clicks.
slugPrefixNoReadable link text to start the address with. Readable link text requires the Pro plan. The address always ends in 6 generated characters, e.g. spring-sale-k7m2q9.
fallbackUrlNoWhere visitors go when it is unavailable.
destinationUrlYesWhere the link goes (http or https). Required even for a choice page or board.
expiresInMinutesNoStops working after this many minutes. Free: up to 1440; Pro: up to 129600 (90 days).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / slugPrefix / description
      Previous value: -"Readable link text to start the address with. Readable link text is a Pro feature. The address always ends in 6 generated characters, e.g. spring-sale-k7m2q9."New value: +"Readable link text to start the address with. Readable link text requires the Pro plan. The address always ends in 6 generated characters, e.g. spring-sale-k7m2q9."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=false, destructiveHint=false, openWorldHint=true), so the description's job is additive, and it delivers: plan gating, 'the API says so when it refuses', the slug format rule (6 generated characters appended), and time-zone reading semantics for availability vs UTC routing rules. It also discloses response fields (qrUrl, manageUrl), which matters because there is no output schema; it does not discuss rate limits or rollback.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the examples are genuinely useful for the deeply nested rules object, but the Free/Pro field inventory and the slugPrefix explanation largely restate text already present verbatim in the 100%-covered schema. Six full JSON examples plus repeated tier notes make it longer than it needs to be.

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 nine-parameter tool with nested rule objects and no output schema, the description supplies the missing behavioral layer: plan limits, format rules, time-zone interpretation, mutual exclusions (destinations vs choiceOptions vs routing), and the meaning of returned qrUrl/manageUrl. Only response shape details beyond those two fields remain unstated.

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 description coverage is 100%, so the baseline is 3, but the description adds cross-field meaning the schema only states piecemeal: destinationUrl's role depends on whether choiceOptions, destinations, or routing are supplied, slugPrefix always yields a 6-character suffix, and availability/routing windows are read in their own timeZone while weekday/hour rules use UTC. The worked examples make the nested rules shapes concrete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource ('Create a short link'), and the following paragraphs explain what destinationUrl means in each mode (plain redirect, choice page, board, routing default). It never explicitly contrasts with update_link, so an agent must infer the create-vs-modify boundary, but the core action is unambiguous.

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 real usage context: which fields are Free vs Pro, that the API reports refusals, that there are no tags so one link per channel should be created and named in the title, and it points to find_links for title search. It stops short of stating when to prefer a sibling like update_link or when not to call this tool at all.

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.