Skip to main content
Glama

短.在线

Shorten URL

shorten_url

Create a single short link (POST /v1/links). Returns ActiveLinkCreated or NonActiveLinkCreated structured fields. Requires idempotency_key (arg or Idempotency-Key header).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNohttp(s) destination URL — Soft C SSRF no-fetch applies
aliasNoOptional ASCII alias [A-Za-z0-9_-], stored lowercase
titleNo
localeNo
longUrlNohttp(s) destination URL — Soft C SSRF no-fetch applies
customSlugNoOptional ASCII alias [A-Za-z0-9_-], stored lowercase
idempotency_keyNoIdempotency key (same semantics as REST Idempotency-Key header)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
okYes
codeNo
errorNo
stateNo
messageNo
retryableNo
short_urlNo
created_atNo
request_idYes
status_urlNo
destinationNo
qr_tracking_urlNo
short_url_asciiNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does add value by stating the idempotency_key requirement (including the header alternative) and the two possible return types. However, it does not explain what conditions lead to ActiveLinkCreated versus NonActiveLinkCreated, nor does it disclose side effects, rate limits, or permission needs. It is more informative than a tautology but lacks depth for a mutation tool.

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 description is only two sentences and front-loads the core purpose. There is no fluff, and the idempotency requirement is mentioned right after the return types. It is slightly lacking in structure—no use of bullets or clear separation of concerns—but it is appropriately sized for the tool.

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

Completeness2/5

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

For a tool with 7 parameters and no annotations, the description is under-specified. It does not clarify the distinction between url and longUrl, nor alias and customSlug, which could lead an agent to misuse them. It also does not explain the business meaning of the two return types or any error handling. The output schema exists, but the description's mention of it is not enough to cover the full context an agent needs to call this tool correctly.

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 71%, so the description does not need to repeat parameter details. It does add one semantic nuance: idempotency_key can be passed as an argument or via the Idempotency-Key header, which is not fully captured in the schema description. However, it adds nothing about url vs longUrl or alias vs customSlug, which are potentially confusing duplicates. Given the high schema coverage, a baseline of 3 is appropriate, with the idempotency clarification being a minor bonus.

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

Purpose5/5

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

The description clearly states the action ('Create a single short link'), names the HTTP endpoint, and the word 'single' distinguishes it from the sibling shorten_urls (plural). It also mentions the return types, which further clarifies its scope. This is a specific verb+resource statement that an agent can easily act on.

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 explicit guidance on when to use this tool versus alternatives. It only says 'single', which implicitly contrasts with the plural shorten_urls, but it does not name the sibling or state conditions for choosing one over the other. It also does not mention any exclusions or prerequisites beyond the idempotency_key requirement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources