Skip to main content
Glama

Kiescy

Consent hooks and tags

get_consent_api
Read-only

How this site's code follows the visitor's cookie choice: tagging scripts, iframes and pixels so they wait for consent, pira.when / onChange / piraQueue hooks (what was accepted, declined or withdrawn), the Google Tag Manager dataLayer event and the server API. Call it before adding or changing any analytics, ads, pixel, embed or other tracking code, even when Kiescy reports no issue.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_consent_api"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The readOnlyHint annotation already tells the agent this is a safe read, so the description's added value is the scope of coverage: consent-gating behavior, the hook names, the dataLayer event and a server API. It does not say what form the answer arrives in or how to interpret it, so the behavioral context is useful but thin.

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?

Two sentences, both short in structure, with the content inventory first and the call-to-action second. The middle sentence is a dense noun pile of hook names and event types, but each item conveys real scope, so nothing is clearly wasted.

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?

For a read-only, zero-parameter tool with no output schema, the agent's main need is to know what will come back and when to reach for it. Both are addressed through the enumeration of hooks, the GTM event and the server API, though the exact response format stays implicit.

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?

With zero parameters the baseline is 4; there is nothing for the description to disambiguate, and the empty schema leaves no signal to contradict.

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?

The opening clause, 'How this site's code follows the visitor's cookie choice,' sketches the resource, and the body lists concrete sub-topics (tagging scripts, iframes, pixels, pira.when/onChange/piraQueue hooks, GTM dataLayer event, server API). But it never states plainly what the tool returns — reference documentation versus live site configuration — and the name 'get_consent_api' remains only loosely tied to that content.

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?

It gives an explicit trigger: call it before adding or changing analytics, ads, pixel, embed or other tracking code, and it strengthens that with 'even when Kiescy reports no issue.' No competing sibling is named as an alternative, so there is no when-not guidance, which keeps it short of a 5.

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