Skip to main content
Glama

Shorten a link

shorten_link

Make a short siz.la address for a long web address. Returns the short address and the link's id. Safety checks run on every destination, and the account's monthly link limit applies. Password, expiry and click limits work on every plan, the free one included. It can also put the link in a campaign and fire the account's ad pixels on each click.

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": {
      "destination": "<destination>"
    },
    "name": "shorten_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoA custom code for the short address, for example lunch-menu. Letters, numbers, dashes and underscores. Leave it out to get a random one.
titleNoA name for the link. Only the account owner sees it.
cta_idNoThe id of one of the account's call-to-action messages (made on siz.la under Call to action) to show over the page the link opens.
domainNoOne of the account's connected custom domains, such as go.example.com, to make the link on. Leave it out to use siz.la.
pixelsNoIds of the account's ad pixels to fire on each click, as listed by list_pixels.
campaignNoA campaign to put the link in, by name. A campaign that does not exist yet is made. Needs a paid plan.
passwordNoA password visitors must enter before they are sent on.
expires_atNoWhen the link stops working, as a date and time such as 2026-12-31 18:00.
destinationYesThe full web address to shorten. It must start with http:// or https://.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive write, but the description adds real behavioral context beyond them: safety checks run on every destination, the account's monthly link limit applies, plan gating on features, and the side effects of auto-creating campaigns and firing ad pixels on each click. It does not cover failure modes or error behavior, 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 short sentences, front-loaded with the core purpose and return values before secondary behaviors. No filler, though the sentence about password/expiry/click limits is slightly tangential and could be tightened.

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 9-parameter creation tool with no output schema, the description covers purpose, return payload, safety checks, quota, and plan constraints. It omits pagination-style concerns (not applicable here) and any detail on failure responses, but nothing essential for correct invocation is missing.

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 100%, so the schema already defines every parameter and baseline would be 3. The description adds cross-parameter policy not present in the schema — that password, expiry and click limits work on every plan including free, while campaigns need a paid plan — which materially affects which parameters an agent should populate.

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 description opens with a concrete verb and resource: 'Make a short siz.la address for a long web address', and adds what is returned ('the short address and the link's id'). It is clearly a creation tool, distinguishable in intent from siblings like update_link or archive_link, though those alternatives are never named explicitly.

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?

Usage is implied rather than stated: the agent can infer this is the tool for creating a new short link, and it learns that monthly link limits and plan eligibility apply. However, there is no explicit when-to-use versus when-to-use update_link instead, and no stated exclusions or prerequisites for calling it.

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.