Skip to main content
Glama

legal_consent_log_export

Export raw consent decision logs as CSV for a chosen date range, returning a ready-to-write file for compliance records and audits.

Instructions

Export the raw consent decision log as CSV for a day range (same optional from/to rules as legal_consent_log_stats). Returns { filename, csv }; the csv is the full file text, ready to write out as-is. Requires manage_options. Logging itself stays off until legal_put_consent's log_enabled is set, which should only happen after the Datenschutz document has an 'einwilligungsnachweis' section describing it. Requires cvrt-legal 0.5.0+.

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": {
      "site": "<site>"
    },
    "name": "legal_consent_log_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoFirst day NOT counted (exclusive, the range is [from, to)). Defaults to tomorrow, so today is included.
fromNoFirst day counted (inclusive). Defaults to 30 days before to; must be before to.
siteYesSite id (see list_sites)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.14.0
    • changedInput schema / properties / from / description
      Previous value: -"Range start, inclusive. Defaults to 30 days before to."New value: +"First day counted (inclusive). Defaults to 30 days before to; must be before to."
    • changedInput schema / properties / to / description
      Previous value: -"Range end, inclusive. Defaults to today."New value: +"First day NOT counted (exclusive, the range is [from, to)). Defaults to tomorrow, so today is included."
  2. Addedv3.4.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the exact return object, that the CSV is the complete file text usable as-is, the capability requirement (manage_options), a version floor, and a critical pre-condition that logging is off by default until log_enabled is set. It does not say what the response looks like when logging was never enabled (empty CSV vs error), which is the one behavioral gap for an un-annotated tool.

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 action and output, then prerequisites, with no filler. The governance sentence about the Datenschutz 'einwilligungsnachweis' section is long but is real operational guidance rather than padding.

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?

There is no output schema, and the description compensates by naming the returned fields and explaining how to use the csv value. Combined with prerequisites and version requirements, an agent has enough to call it correctly; only the disabled-logging outcome is unaddressed.

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 defines from/to patterns, inclusivity/exclusivity and defaults, so the description adds no parameter meaning beyond it. Naming 'same optional from/to rules as legal_consent_log_stats' is a convenience pointer but not new semantics.

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 specific verb+resource+format: 'Export the raw consent decision log as CSV for a day range'. The word 'raw' contrasts implicitly with the aggregation implied by legal_consent_log_stats, and the return shape ({filename, csv}) is named, so an agent can tell what it gets without opening anything else.

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

Usage Guidelines3/5

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

It routes date-range semantics to the sibling legal_consent_log_stats ('same optional from/to rules') and lists hard prerequisites (manage_options, log_enabled, cvrt-legal 0.5.0+), which is genuinely useful. However it never explicitly says when to pick this over legal_consent_log_stats or legal_consent_log_get; the differentiation is left implicit in the word 'raw'.

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