Skip to main content
Glama
yourls

yourls

by si-essence

yourls_links

Shorten URLs, expand short links, and retrieve link or database statistics through YOURLS, with write actions gated by a confirm preview.

Instructions

yourls_links covers the links toolset (3 operations). Auth is a POST body signature from YOURLS_SIGNATURE, or username and password from YOURLS_USERNAME and YOURLS_PASSWORD. YOURLS_URL is required. Requests go to yourls-api.php with format=json. action help with target returns one action's parameters. Writes need confirm set to the boolean true and YOURLS_ALLOW_WRITES=true. Omit confirm for a dry-run preview that sends nothing. Actions: shorturl, expand, url_stats.

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": "yourls_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoOptional extra form fields. Auth fields are rejected. Secrets are redacted in output.
queryNoSame as params. Prefer params.
actionYesYOURLS operation to call, or help.
paramsNoAction fields, such as url, keyword, shorturl, filter, limit.
targetNoWith action help, the action whose parameters to describe.
confirmNoSet to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Well beyond the annotations, it discloses the auth model (POST body signature from YOURLS_SIGNATURE, or YOURLS_USERNAME/YOURLS_PASSWORD), the required YOURLS_URL, the format=json endpoint path, and the dual gate for writes (confirm=true plus YOURLS_ALLOW_WRITES=true) with a dry-run default. It is consistent with readOnlyHint=false and destructiveHint=false since writes are explicitly gated behind two confirmations. It stops short of describing rate limits, error shapes, or reversibility of a shorturl write.

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 sentences are individually dense but the block is unstructured, and the most important information for an agent — which three operations exist — is deferred to the very end. Some content (confirm must be boolean true, omit for dry-run) duplicates the schema verbatim rather than adding value.

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 6-parameter tool with nested free-form objects and three operations behind a shared auth layer, the description covers setup, authentication, endpoint, write gating, dry-run behavior, and self-discovery via help. No output schema exists, so return values are undescribed, but the call mechanics an agent needs are largely present.

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 explains action, target, params, query, body and confirm in detail; the description largely restates confirm's dry-run semantics. The one genuine addition is the YOURLS_ALLOW_WRITES=true environment gate, which the schema does not mention and which materially affects whether a write executes, so the baseline of 3 with a small lift is appropriate.

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 names the resource ("the links toolset") and enumerates the concrete operations (shorturl, expand, url_stats), so an agent knows this is YOURLS link CRUD/expansion rather than metadata or stats. The operations are buried in the final sentence instead of front-loaded, and the potentially confusing adjacency to the yourls_stats sibling (vs. the url_stats action) is never disambiguated.

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 gives strong operational guidance: use action help with target to discover one action's parameters, and omit confirm for a dry-run preview that sends nothing. What's missing is selection guidance between this tool and its siblings (yourls_meta, yourls_stats), especially the url_stats action versus the yourls_stats tool, so routing is left to inference.

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

Deploy Server

Other Tools