Skip to main content
Glama

Update a link

update_link
Idempotent

Change one of the account's links. Only the fields you send change. The short address stays the same. Expiry, password and click limit work on every plan. It can also change the campaign and the pixels. Leave pixels out to keep them as they are; send an empty list to remove them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe link's id, as returned by list_links or shorten_link. Give either id or code.
codeNoThe link's code (the part after siz.la/) or its full short address. Give either id or code.
titleNoA new name for the link. Send an empty string to remove it.
cta_idNoThe id of one of the account's call-to-action messages to show over the page the link opens. Send 0 to remove it.
pixelsNoIds of the account's ad pixels to fire on each click, as listed by list_pixels. An empty list removes them.
campaignNoMove the link into a campaign, by name. A campaign that does not exist yet is made. Send an empty string to take the link out of its campaign.
passwordNoA password visitors must enter before they are sent on. Send an empty string to remove it.
expires_atNoWhen the link stops working, as a date and time such as 2026-12-31 18:00. Send an empty string to remove the expiry.
click_limitNoThe link stops working after this many clicks. Send 0 to remove the limit.
destinationNoThe new full web address the link leads to. It must start with http:// or https://.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already disclose mutation, idempotency, non-destructiveness, and closed-world behavior. The description adds useful operational context: only supplied fields change, the short address is preserved, expiry/password/click-limit work on every plan, and pixels have distinct omit-versus-empty-list semantics.

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 description is front-loaded and mostly efficient, with the core update behavior stated first. A few sentences, such as the general note that it can change campaign and pixels, are somewhat redundant with the schema but still support quick comprehension.

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 ten-parameter update tool with full schema coverage and annotations covering safety and idempotency, the description gives enough context to call it correctly. It could be stronger with explicit sibling routing for archive/delete/restore operations, but the core mutation semantics are 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 description coverage is 100%, so the schema already documents all ten parameters thoroughly, including removal values and constraints. The description reinforces partial-update behavior and pixel omission semantics but adds little parameter-specific meaning beyond what the schema already provides.

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 states a specific verb and resource: 'Change one of the account's links.' It immediately clarifies that this is a partial update ('Only the fields you send change') and that the short address remains stable, which distinguishes it from link-creation or replacement behavior.

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?

The description implies this is for modifying an existing link and explains field-level behavior, including partial updates and plan availability. However, it does not explicitly route the agent away from archive_link, delete_link, restore_link, or shorten_link when those would be more appropriate.

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.