Skip to main content
Glama

shorten_url

Create a short link for a destination URL, optionally adding a custom slug or UTM parameters, and return the short URL and link ID.

Instructions

Create one short link on linkbit.live for a destination URL. Returns the short URL and the link id. Optional UTM fields are merged into the destination without overwriting utm_* params it already has; a #fragment is kept. Fails on an invalid or unsafe URL, a slug that is taken, or when the daily create limit is reached.

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_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoPrivate note for your own reference. Not shown to visitors.
slugNoCustom slug for the short URL. A random one is used when omitted.
utm_termNoUTM term (paid keyword). Added to the destination URL.
utm_mediumNoUTM medium, e.g. email. Added to the destination URL.
utm_sourceNoUTM source, e.g. newsletter. Added to the destination URL.
destinationYesFull http(s) URL to redirect to.
utm_contentNoUTM content (ad or link variant). Added to the destination URL.
utm_campaignNoUTM campaign name. Added to the destination URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.0.5
    • addedInput schema / properties / destination / description
      Added value: +"Full http(s) URL to redirect to."
    • addedInput schema / properties / note / description
      Added value: +"Private note for your own reference. Not shown to visitors."
    • addedInput schema / properties / slug / description
      Added value: +"Custom slug for the short URL. A random one is used when omitted."
    • addedInput schema / properties / utm_campaign / description
      Added value: +"UTM campaign name. Added to the destination URL."
    • addedInput schema / properties / utm_content / description
      Added value: +"UTM content (ad or link variant). Added to the destination URL."
    • addedInput schema / properties / utm_medium / description
      Added value: +"UTM medium, e.g. email. Added to the destination URL."
    • addedInput schema / properties / utm_source / description
      Added value: +"UTM source, e.g. newsletter. Added to the destination URL."
    • addedInput schema / properties / utm_term / description
      Added value: +"UTM term (paid keyword). Added to the destination URL."
  2. First observedv1.0.4

TDQS

A4.1/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) by disclosing the return values (short URL and link id), the merge semantics for UTM params, fragment retention, and three concrete failure modes including the daily create limit. That is exactly the kind of behavior an agent needs before calling a mutation tool.

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?

Three tightly packed sentences, front-loaded with the core action and followed by return value, merge behavior, and failure modes. Nearly every clause earns its place; the failure list is dense but useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter creation tool with no output schema, the description covers what is created, what is returned, how optional fields behave, and when it fails. Nothing material is missing for correct invocation.

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 baseline would be 3, but the description adds real semantics the schema lacks: UTM fields are merged into the destination without overwriting existing utm_* params, and a #fragment is preserved. Only the slug/note parameters get no extra treatment beyond the schema.

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?

States a specific verb and resource: 'Create one short link ... for a destination URL', and 'one' implicitly separates it from the bulk sibling shorten_urls. It never names that sibling explicitly, so differentiation is by inference rather than declaration.

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 single-link scope hints at when to use this over shorten_urls, but there is no explicit when-to-use/when-not statement or named alternative. Usage is implied by the description rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.