Skip to main content
Glama

L1NK

Update link

update_link
Idempotent

Change where a link points, set a new expiry (Pro) or remove its expiry, or set destination rules (Pro): rotate clicks among several URLs (e.g. a WhatsApp rotator between salespeople) or send by country or device. Also (Pro) an activation date, a click limit, and what visitors see when the link is not available. The short code stays the same.

Input Schema

NameRequiredDescriptionDefault
urlNoNew destination URL.
codeYesThe short code or custom alias of the link (the part after the slash).
tagsNoThe COMPLETE list of tags the link keeps (it replaces the current one); [] removes them all. Adding a tag the link did not have is Pro (also during the trial); removing is always allowed.
rulesNoDestination rules, Pro plan. Shape: {"version":1, "condiciones":[{"si":{"pais":["PE"],"dispositivo":["ios"]},"destino":"https://..."}], "rotacion":{"destinos":[{"url":"https://wa.me/51...","peso":1}]}}. Conditions are checked in order (pais = ISO country codes; dispositivo = movil, tablet, escritorio, ios, android); the first match wins. Otherwise rotacion takes turns among 2-10 URLs by weight (peso 1-100, default 1). Otherwise the link URL. Bots always get the link URL. Replaces any previous rules.
time_zoneNoOptional IANA time zone (e.g. America/Lima) used to write the activation date to visitors. Default UTC.
max_clicksNoOptional. Pro plan. The link stops working after this many people (bots are not counted). Approximate at the boundary under simultaneous clicks.
active_fromNoOptional. Pro plan. ISO 8601 date-time (e.g. 2026-11-03T09:00:00-05:00): before it the link does not redirect and shows "this link becomes active on …".
remove_rulesNotrue to remove the destination rules (the link goes back to a single URL).
expires_in_daysNoNew expiry, counted from today. Not together with remove_expiration.
unavailable_pageNoOptional. Pro plan. What visitors see when the link is expired, past max_clicks or not active yet. {"modo":"neutra"} = the neutral L1NK page (default); {"modo":"url","url":"https://..."} = redirect to that fallback URL; {"modo":"mensaje","mensaje":"..."} = a short message of yours (max 200 characters). Shown on the same host, custom domains included.
remove_expirationNotrue to make the link permanent.
remove_max_clicksNotrue to remove the click limit.
remove_active_fromNotrue to remove the activation date (the link works right away).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / tags
      Added value: +{
      +  "description": "The COMPLETE list of tags the link keeps (it replaces the current one); [] removes them all. Adding a tag the link did not have is Pro (also during the trial); removing is always allowed.",
      +  "items": {
      +    "maxLength": 30,
      +    "pattern": "^[^,]{1,30}$",
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
  2. Changed6 schema fields changed
    • addedInput schema / properties / active_from
      Added value: +{
      +  "description": "Optional. Pro plan. ISO 8601 date-time (e.g. 2026-11-03T09:00:00-05:00): before it the link does not redirect and shows \"this link becomes active on …\".",
      +  "maxLength": 40,
      +  "type": "string"
      +}
    • addedInput schema / properties / max_clicks
      Added value: +{
      +  "description": "Optional. Pro plan. The link stops working after this many people (bots are not counted). Approximate at the boundary under simultaneous clicks.",
      +  "maximum": 1000000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / remove_active_from
      Added value: +{
      +  "description": "true to remove the activation date (the link works right away).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / remove_max_clicks
      Added value: +{
      +  "description": "true to remove the click limit.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / time_zone
      Added value: +{
      +  "description": "Optional IANA time zone (e.g. America/Lima) used to write the activation date to visitors. Default UTC.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
    • addedInput schema / properties / unavailable_page
      Added value: +{
      +  "description": "Optional. Pro plan. What visitors see when the link is expired, past max_clicks or not active yet. {\"modo\":\"neutra\"} = the neutral L1NK page (default); {\"modo\":\"url\",\"url\":\"https://...\"} = redirect to that fallback URL; {\"modo\":\"mensaje\",\"mensaje\":\"...\"} = a short message of yours (max 200 characters). Shown on the same host, custom domains included.",
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / remove_rules
      Added value: +{
      +  "description": "true to remove the destination rules (the link goes back to a single URL).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / rules
      Added value: +{
      +  "description": "Destination rules, Pro plan. Shape: {\"version\":1, \"condiciones\":[{\"si\":{\"pais\":[\"PE\"],\"dispositivo\":[\"ios\"]},\"destino\":\"https://...\"}], \"rotacion\":{\"destinos\":[{\"url\":\"https://wa.me/51...\",\"peso\":1}]}}. Conditions are checked in order (pais = ISO country codes; dispositivo = movil, tablet, escritorio, ios, android); the first match wins. Otherwise rotacion takes turns among 2-10 URLs by weight (peso 1-100, default 1). Otherwise the link URL. Bots always get the link URL. Replaces any previous rules.",
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-destructive, idempotent behavior, so the description adds value beyond that: Pro-plan gating, that rules/tags replacements overwrite prior state, that bots always get the base URL and are not counted, and that the short code is preserved. It doesn't state permission/auth requirements or reversibility explicitly, keeping it from 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?

The main capability is front-loaded in the first sentence, with the Pro-only features grouped afterward. The parenthetical WhatsApp example is illustrative but slightly decorative, and the sentence is dense; still, every clause maps to a real capability, so waste is minimal.

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 13-parameter mutation tool with nested objects and no output schema, the description covers all the major intents (redirect, expiry, rules, scheduling, fallback) and notes the key invariant that the code is unchanged. It leaves auth/permission context and the exact non-Pro vs Pro boundary for tags unaddressed, so it is strong but not fully complete.

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 the schema already documents every parameter including the nested rules and unavailable_page shapes. The description mostly restates those capabilities (destination rules, activation date, click limit) at a higher level without adding syntax or format detail beyond the schema, so 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?

The description opens with a specific verb and resource ('Change where a link points') and then enumerates exactly what can be updated: destination, expiry, destination rules, activation date, click limit, and unavailable page. This is clearly distinct from create_link, delete_link, and get_link without naming them.

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 strong context on what kinds of edits this tool handles and flags which capabilities require the Pro plan, plus the useful reassurance that the short code stays the same. It stops short of explicitly naming alternatives (e.g. use delete_link to remove a link entirely) or stating when-not to use it, so it misses a 5.

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