Skip to main content
Glama

Summarise the consent choices visitors made on one app, by day

account.getConsentSummary
Read-only

Returns daily totals only — never an individual visitor, IP address, email or consent record — of the consent choices visitors made on one of your apps, for the last days complete days ending yesterday (UTC; 1-29, default 29). Today is not included: its figures are added after the day ends. Each day gives three groups and the day's total. Full consent: Highest level stored. On the newer banner, every category allowed; on the older (v1) banner, almost always every category, but not always. Partial: Middle level stored: some categories allowed, not all. Essential only: Lowest level stored: only what the site needs to work (almost always). A group is the consent level the banner stored, not which button was pressed: use these group names and pass on the notes in the result. shares are percent of the three groups together, not of total. Counts cover complete days only, and the most recent day can arrive a few hours after midnight UTC. A day missing from days means no counts yet, or none recorded — never report it as zero. Full consent logs, record by record, are exported by the customer from the Cookie Compliance dashboard at the consentLogsUrl in the result. Call account.listApps first if you do not have the appID.

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": {
      "appID": "<appID>"
    },
    "name": "account.getConsentSummary"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow many complete days to cover, ending yesterday (UTC); today is never included because its figures are added after the day ends. 1-29, default 29 — the most the consent data reaches back.
appIDYesThe app to summarise. Get it from account.listApps rather than asking the customer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description goes far beyond that, disclosing that no PII is returned, that the window ends yesterday in UTC, that the most recent day can lag a few hours after midnight, and that a missing day means 'no counts yet, or none recorded'. It even clarifies that the group reflects the level the banner stored rather than the button pressed — a material interpretation caveat an agent could not infer from annotations.

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 the core statement and PII exclusion, then the window semantics, then group definitions and reporting caveats — a logical order. It is dense with non-redundant detail, though the 'today is not included' rationale recurs ('Today is not included: its figures are added after the day ends' and later 'Counts cover complete days only'), costing some tightness.

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 return-shape burden itself: three named groups plus a day total, shares as percent of the three groups rather than of total, and the lag behavior. Combined with the prerequisite pointer to account.listApps, nothing an agent needs to call or interpret this correctly is missing.

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% and the schema already documents both `days` (1-29, default 29, ending yesterday UTC) and `appID`. The description restates the same range and cutoff rationale rather than adding new semantics, so the schema does the heavy lifting; 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 concrete verb and resource — daily consent totals for one app — and immediately scopes it against record-level data ('never an individual visitor, IP address, email or consent record'), which distinguishes it from the consentLogs export path. An agent can identify the tool without opening the schema.

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

Usage Guidelines5/5

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

Explicitly instructs 'Call account.listApps first if you do not have the appID', and routes the record-by-record use case elsewhere by naming the Cookie Compliance dashboard at consentLogsUrl. It also gives operational rules ('use these group names and pass on the notes in the result') and a reporting exclusion ('never report it as zero'), covering both when to use it and how not to misuse the output.

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.

Resources