Skip to main content
Glama
shlink-mcp

shlink-mcp

by si-essence

shlink_visits

Read-only

Retrieve and analyze Shlink visit analytics by global, short URL, tag, domain, orphan, or non-orphan scope; use help to list parameters for an action.

Instructions

shlink_visits covers the visits toolset (6 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: global, short_url, tag, domain, orphan, non_orphan.

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

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
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint, so the bar is lower, yet the description adds genuinely useful operational context: the base URL variable, X-Api-Key authentication, the unauthenticated health route, and REST version 3. Its only flaw is referencing a 'health' route that does not appear in the action enum, which is mildly confusing rather than contradictory.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and short, but two of its four sentences restate structured data (the action enum verbatim) and the 'health' mention is stray noise. The action list would be better spent explaining the actions rather than repeating them.

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 six-operation dispatcher with no output schema, the description should say what kind of data each action yields and which parameters matter per action. It defers everything to the help action, which is a reasonable strategy but leaves an agent unable to judge results without a second round-trip.

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 is 3; the description earns a point by explaining the only non-obvious parameter interaction—that help plus target returns that action's parameter list. It says nothing additional about body/query/params, but the schema already documents those.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

It identifies the tool as the visits toolset and enumerates operations, but never says what it actually returns (visit statistics/analytics) or what distinguishes global visits from short_url/tag/domain scoped visits. The name prefix alone separates it from shlink_short_urls or shlink_tags; the description does not add a differentiating verb-plus-resource statement.

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?

It implies usage by listing the six actions and noting that 'action help with target returns one action's parameters', which is a real navigational cue. However there is no guidance on choosing between actions (e.g. orphan vs non_orphan vs global) and no statement of when to prefer a sibling tool such as shlink_short_urls.

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