Skip to main content
Glama
shlink-mcp

shlink-mcp

by si-essence

shlink_short_urls

Read-only

List and retrieve short URLs from a Shlink instance to inspect link details, domains, and paginated results.

Instructions

shlink_short_urls covers the short_urls toolset (2 operations). Calls go to SHLINK_URL. Authenticated routes send X-Api-Key. Health sends no key. The REST version is 3. action help with target returns one action's parameters. Actions: list, get.

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": {
      "action": "<action>"
    },
    "name": "shlink_short_urls"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON object or JSON array. Secrets are redacted in output.
queryNoQuery parameters, such as page, searchTerm, and domain.
actionYesShlink operation to call, or help.
paramsNoPath parameters, such as shortCode, tag, and domain.
targetNoWith action help, the action whose parameters to describe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered structurally. The description adds genuinely useful operational context outside the annotations: requests go to SHLINK_URL, authenticated routes need an X-Api-Key header while health checks do not, and the REST version is 3. It says nothing about pagination, result limits, or error behavior, so the addition is real but partial.

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?

Front-loaded with the toolset scope and operation list, followed by the auth and base-URL facts an agent needs before calling. Sentences are short and each carries information; the REST version note is marginal but not wasteful.

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

Completeness3/5

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

For a five-parameter tool with nested objects and no output schema, the definition covers connectivity, auth, and the action vocabulary, but leaves return shape entirely unexplained. An agent knows how to reach the API and which action to pick, yet not what list versus get hands back, which is the main remaining gap given the absence of an output schema.

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 body, query, params, action, and target are all already documented in the schema, including the help/target interaction the description restates. The description adds no syntax, formatting, or constraint detail beyond what the structured fields provide, so the baseline 3 applies.

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 the resource explicitly (the short_urls toolset) and enumerates the two operations, list and get, plus the help action. An agent can tell this is about short URLs rather than tags, domains, or visits, though the description never names a verb for what each action does.

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 establishes scope and explains that 'action help with target' reveals one action's parameters, which implies a discovery workflow. It gives no explicit when-to-use or when-not guidance, and does not say when to pick get over list or how this toolset differs from the sibling toolsets in practice.

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