Skip to main content
Glama

Acquisition

acquisition
Read-onlyIdempotent

Report daily visits by channel—paid, email, social, campaign, organic, referral, direct—plus sources, campaigns, conversions, ad clicks and revenue for a project date range.

Instructions

Visits per day and channel (paid, email, social, campaign, organic, referral, direct), the totals of each channel over the range (channels, every channel in that order), and the sources and campaigns that brought them, with their conversions, ad clicks and revenue. The revenue of a channel, source or campaign is that of the conversions made by the visits that entered through it, null when the goal counted is a page or the project has no goal. Revenue is a sum of the numeric revenue property the site sent on events, in the project's currency (currency in list_projects and project_settings) and as sent: changing the currency or sending amounts in another one converts nothing. A source is the campaign source, else the referring host; a visit with neither is (ad click) when it came from an ad click, such as one opened by an app that sends no referrer, and (direct) otherwise. Conversions count one goal: the one goal names, by its id from the goals tool, or else the first goal (goal 1), which started as the project's former conversion event; they are null when the project has no goal.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

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": {
      "project_id": "<project_id>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "acquisition"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesLast day of the range, inclusive (YYYY-MM-DD), at most the project's today.
fromYesFirst day of the range, inclusive (YYYY-MM-DD).
goalNoThe goal counted as conversions, by its id from the goals tool; without it, the first goal (goal 1).
project_idYesThe project id, from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • addedInput schema / properties / goal
      Added value: +{
      +  "description": "The goal counted as conversions, by its id from the goals tool; without it, the first goal (goal 1).",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
  2. First observedv0.4.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial semantics: revenue is null when the goal is a page or absent, revenue is summed as sent with no currency conversion, source is campaign source else referring host with (ad click)/(direct) fallbacks, and ranges are capped at 400 days with `to` at most today. These are real behavioral constraints not present in the annotations or schema.

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?

Content is front-loaded in the opening sentence, but the prose is dense and run-on, with nested parentheticals and a closing paragraph on data provenance that reads as boilerplate. Definitions of revenue, source and conversions are packed into one paragraph instead of being separated, making it harder to scan.

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

Completeness5/5

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

With no output schema, the description carries the burden of explaining returns and does so thoroughly — metric set, null conditions, ordering of channels, revenue attribution and provenance of text values. Combined with the parameter and date-range rules, an agent has enough to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds meaning beyond it: `goal` defaults to the first goal (goal 1, formerly the conversion event), and both `from`/`to` carry the 400-day range cap plus the dependency on the project's today. That is value beyond the schema text.

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 first sentence names a specific report and enumerates its contents: visits per day and channel, channel totals, and sources/campaigns with conversions, ad clicks and revenue. An agent can tell it is an acquisition/channel-attribution report, though it never contrasts itself with siblings such as visits, overview or engagement.

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 when-to-use statement and no named alternative, despite 17 sibling tools that overlap (visits, overview, engagement, funnel). Usage is only inferable from the list of returned metrics, leaving the agent to guess how this differs from the visits or overview tools.

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