Skip to main content
Glama
travelpayouts-mcp

travelpayouts-mcp

create_partner_links

Generate Travelpayouts affiliate links from brand URLs and return branded short links tracked by sub_id for campaign attribution.

Instructions

Create Travelpayouts affiliate links from brand URLs via the Partner Links API (branded short links, tracked by sub_id). Requires TRAVELPAYOUTS_TOKEN, TRAVELPAYOUTS_MARKER and TRAVELPAYOUTS_TRS. Limits: max 10 URLs per call, 100 calls/min per marker.

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": {
      "urls": "<urls>"
    },
    "name": "create_partner_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
trsNoOverride project id (trs).
urlsYesBrand URLs (long URLs with UTM tags).
markerNoOverride partner marker.
sub_idNoTracking label, e.g. tg_en_deals or seo_es.
shortenNoReturn branded short link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries the burden and does well: it discloses required credentials (TRAVELPAYOUTS_TOKEN, MARKER, TRS) and hard limits (max 10 URLs per call, 100 calls/min per marker). It stops short of stating whether creation is idempotent or what happens on partial failure of a batch.

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

Conciseness5/5

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

Two dense sentences: purpose first, then credentials and limits. No filler, and the operational constraints an agent needs are front-loaded rather than buried.

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 five-parameter creation tool with no output schema, the description covers purpose, auth, and quotas, which is most of what is needed to invoke it safely. It omits any indication of the response payload shape (e.g. list of short links vs error entries), a minor remaining gap.

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 all five parameters are already documented in the schema. The description adds only light context — sub_id as tracking and the branded short-link concept — which reinforces but does not extend the schema. Baseline 3 applies.

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?

States a specific verb and resource ('Create Travelpayouts affiliate links from brand URLs'), names the mechanism (Partner Links API) and the output shape (branded short links tracked by sub_id). This is clearly a write/generate tool, distinct from the read-only search and price siblings.

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?

Usage is implied by the described inputs (brand URLs with UTM tags) and prerequisites, but there is no explicit when-to-use vs when-not guidance and no mention of alternatives. Adequate but not directive.

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