Skip to main content
Glama

build_campaign_urls

Read-onlyIdempotent

CAPABILITY: read. Build campaign tracking URLs from supplied URL and UTM records. This read-only, deterministic operation performs no mutation or network request. Returns a JSON array of tagged URLs, one per input record in the same order, or {error: "invalid_input"} when a record is malformed. CAPABILITY: read: side-effect-free.

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": {
      "records": "<records>"
    },
    "name": "build_campaign_urls"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordsYesOne entry per link to tag; the output array matches this order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / records / description
      Added value: +"One entry per link to tag; the output array matches this order."
    • addedInput schema / properties / records / items / properties / content / description
      Added value: +"Optional variant label (utm_content) to tell links in the same campaign apart."
    • addedInput schema / properties / records / items / properties / medium / description
      Added value: +"Channel type (utm_medium), e.g. email, social or cpc."
    • addedInput schema / properties / records / items / properties / source / description
      Added value: +"Where the traffic comes from (utm_source), e.g. newsletter or linkedin."
    • addedInput schema / properties / records / items / properties / term / description
      Added value: +"Optional paid keyword (utm_term)."
    • addedInput schema / properties / records / items / properties / url / description
      Added value: +"Destination page as a full http(s) URL. Existing query parameters are kept; any existing utm_* values are overwritten."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is largely covered. The description still adds real behavioral value beyond that: it commits to determinism, states there is no network request, guarantees output ordering matches input ordering, and gives the failure result shape ({error: "invalid_input"}) for a malformed record.

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 core sentence is well front-loaded, but the 'CAPABILITY: `read`' tag appears twice plus a trailing 'CAPABILITY: `read`: side-effect-free', and read-only is effectively asserted three times. Those tokens repeat the annotations and dilute an otherwise short description.

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?

There is no output schema, so the description must explain returns, and it does: a JSON array of tagged URLs in input order, or an error object. The main remaining ambiguity is whether one malformed record fails the whole batch or only that entry, which matters for a nested array tool capped at 20 items.

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 every field including url, source, medium, content, term, campaign and brand is already documented, and the campaign default rule is stated in the schema itself. The description only adds the array-level contract ('one per input record in the same order'), not field-level meaning, so the baseline of 3 is right.

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 opens with a specific verb and resource: 'Build campaign tracking URLs from supplied URL and UTM records.' It also states the scope of a single call (one output URL per input record) and the error condition, so the agent can distinguish this pure-transform tool from any sibling that creates or publishes content.

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 only implied: 'build tracking URLs' suggests you call it when you need UTM-tagged links, and 'no network request' tells the agent it does not need a connected account first. But there is no explicit when-to-use statement, no mention of prerequisites or limits (e.g. the 20-record cap on a batch), and no named alternative for any overlapping case.

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.