Skip to main content
Glama
yourls

yourls

by si-essence

yourls_stats

Read-only

Retrieve link click statistics and database statistics from a self-hosted YOURLS instance to monitor short-link performance and database usage.

Instructions

yourls_stats covers the stats toolset (2 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. Actions: stats, db_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_stats"
  }
}

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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/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 the safety profile is covered. The description adds genuinely useful context beyond that: the two auth mechanisms (POST body signature from YOURLS_SIGNATURE, or YOURLS_USERNAME/YOURLS_PASSWORD), the required YOURLS_URL, and the target endpoint plus format=json. It still says nothing about response shape, error modes, or per-action behavior, so it does not reach the top of the scale.

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?

The scope statement is front-loaded, followed by auth, endpoint, and the help mechanism in a compact run of sentences. The closing 'Actions: stats, db_stats' list restates the schema enum and is the one sentence that does not fully earn its place.

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 dispatcher with nested objects and no output schema, the auth and endpoint information is complete and the help action provides a discovery path. What is missing is any indication of how params differ between stats and db_stats, or what the calls return, which is material for a multi-action tool with no 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 coverage is 100%, so the baseline is 3; every field including action, target, params, query and body is already documented in the schema. The description adds only that help requires a target, which the schema's target description already states, and otherwise repeats the action enum rather than clarifying what params each action accepts.

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 scope ('the stats toolset (2 operations)') and enumerates the concrete actions (stats, db_stats), so an agent can tell this is the YOURLS statistics surface. It never contrasts itself with the sibling tools yourls_links and yourls_meta, so the differentiation is left implicit.

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 statement of when to choose stats versus db_stats, or when to reach for this tool instead of the link-management siblings. The only routing-adjacent sentence is 'action help with target returns one action's parameters,' which describes a discovery call rather than usage guidance.

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