Skip to main content
Glama
mcp-piwik

mcp-piwik

piwik_goals

Fetch goal completions and conversion data for a Piwik PRO site over a chosen date range to analyze site performance.

Instructions

Get goal completions and conversion data

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": {
      "siteId": "<siteId>"
    },
    "name": "piwik_goals"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateToNoEnd date (YYYY-MM-DD). Defaults to today
siteIdYesThe site/app ID
dateFromNoStart date (YYYY-MM-DD). Defaults to 30 days ago

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it discloses nothing about whether this is a read-only call, what permissions are needed, or what happens when a site has no goals configured (empty result vs error). Only the default date window is documented, and that comes from the schema, not the description.

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 single sentence is front-loaded and free of padding, so there is nothing to trim. The problem is under-specification rather than verbosity: the brevity leaves real gaps instead of earning its place with useful detail.

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?

With no annotations, no output schema, and a metric-returning tool, the definition should clarify return shape (per-goal rows vs totals) and any goal-configuration dependency. Neither is present, so an agent cannot predict what it will get back or how to interpret an empty response.

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 siteId, dateFrom, and dateTo are already fully documented with formats and defaults. The description adds no meaning beyond the schema, which is acceptable at this coverage level but yields only the baseline score.

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

Purpose3/5

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

"Get goal completions and conversion data" names a verb and a resource, so the agent knows this is a read of goal/conversion metrics rather than traffic or page data. However, it does not say which metrics (completions, conversion rate, revenue, per-goal breakdown) or whether results are per-goal or aggregated, leaving the purpose only loosely bounded against siblings like piwik_analytics_summary.

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 when-to-use guidance, no mention of when to prefer piwik_analytics_summary or piwik_custom_query, and no prerequisite such as requiring goals to be configured for the site. The agent must infer all routing decisions from the tool name alone.

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