Skip to main content
Glama
shlink-mcp

shlink-mcp

by si-essence

shlink_redirect_rules

Read-only

List Shlink redirect rules and get help for available actions and their parameters.

Instructions

shlink_redirect_rules covers the redirect_rules toolset (1 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.

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

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

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description goes beyond them by disclosing the target host (SHLINK_URL), the X-Api-Key authentication scheme, the exception for health routes, and REST version 3 — concrete operational context an agent would otherwise lack.

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?

The purpose is front-loaded in sentence one, but the text is telegraphic and fragmented ('covers the redirect_rules toolset (1 operations)', 'The REST version is 3'), with infrastructure boilerplate interleaved before the action list. It is short but not efficiently organized.

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 5-parameter tool with nested objects and no output schema, the definition omits the key question of what a list call requires — presumably a shortCode and/or domain in params — and gives no sense of the returned rule structure. Auth and endpoint details are complete, but operational completeness is only adequate.

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 action, target, query, params, and body, including examples like shortCode and page. The description only restates the target/help relationship and adds no new meaning to how query or params should be populated for the list action, so the baseline 3 applies.

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?

The description names the resource ('redirect_rules toolset') and the single available operation ('Actions: list'), so an agent can infer it lists redirect rules. However, it never states what a redirect rule is or what the list represents, and it does not distinguish this tool's purpose from siblings like shlink_short_urls beyond the resource label.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this tool over shlink_short_urls or shlink_domains, no prerequisites, and no exclusions. The only usage-adjacent sentence explains the 'help' action mechanism, not when to invoke the tool itself.

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