Skip to main content
Glama
Unilytics MCP Server

Unilytics MCP Server

Official

add_tracked_prompts

Idempotent

Add AEO prompts to a project to track questions sent to AI answer engines, with optional topics, tags, and prompt types; duplicate and invalid rows are reported.

Instructions

Add AEO prompts to track for a project (questions sent to AI answer engines).

EXPECTED SHAPE — each prompt is an object with at minimum a `text` field:
    {"text": "best managed file transfer tools", "topic": "MFT",
     "tags": ["mft"], "prompt_type": "category"}
Only `text` is required. Optional: topic, tags (list or comma-string),
prompt_type ("brand"|"category", default "category"), regions, language,
personas, platforms, analysis_types.

A sheet or CSV maps onto this shape column by column (e.g. "Prompt" -> text, "Topic" -> topic,
"Tags" -> tags). Invalid rows come back as a structured error naming each problem. Prompts
already tracked (ignoring letter case) are skipped. Adding prompts takes the owner, an admin or
an editor role on the project; a viewer's call changes nothing.

The same limits apply as in the Unilytics app: the customer's tracked-prompt allowance (set by
Unilytics for the account that owns the project, counting active prompts across all its
projects; paused prompts don't count) and a per-project ceiling on active prompts. A call over
a limit adds nothing, and its error message says which limit. The result has `imported`,
`skipped_duplicates` and `total` (the project's active prompts after the add); the paying
customer's own accounts also get `cap`, `tracked` and `allowance` (the limit that applied, the
customer's active prompts across its projects, and its allowance).

Args:
    project_id: The project UUID (from list_projects or create_project).
    prompts: List of prompt objects (see shape above).

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>",
      "prompts": "<prompts>"
    },
    "name": "add_tracked_prompts"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptsYes
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • removedInput schema / properties / config
      Removed value: -{
      -  "default": null,
      -  "title": "config",
      -  "type": "string"
      -}
  2. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing duplicate-skipping semantics, required project role (owner/admin/editor, with viewer calls changing nothing), the two quota limits and that an over-limit call adds nothing, and the exact result fields. The idempotentHint is corroborated by the duplicate-skip behavior rather than contradicted.

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?

Front-loaded with a one-line purpose, then a labeled shape block, then the constraints, then named args. Slightly long in the quota/result paragraph, but each sentence carries real calling information, so nothing is clearly wasteful.

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?

Covers purpose, input shape, permissions, quota failure modes, and the return payload including the extra cap/tracked/allowance fields for the paying customer. With no output schema and 0% schema description coverage, this is exactly the information an agent needs to call it correctly.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description fully compensates: it specifies the prompt object shape, marks `text` as the only required field, lists every optional field with allowed values for prompt_type, and explains that tags accept a list or comma-string. It also tells the agent where project_id comes from.

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?

States a specific verb and resource ('Add AEO prompts to track for a project') and even defines what an AEO prompt is ('questions sent to AI answer engines'), so it is distinguishable from add_tracked_keywords and aeo_generate_prompts. It never names a sibling as an alternative though, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear when-to-use context: bulk prompt entry, sheet/CSV column mapping, and the fact that invalid rows return structured errors while case-insensitive duplicates are skipped. It does not state when to prefer a different tool (e.g. generation via aeo_generate_prompts versus manual add), so there are no explicit exclusions.

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