Skip to main content
Glama

legal_consent_log_export

Export a site's raw consent decision log as CSV for a chosen date range, returning the full file text 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+.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoRange end, inclusive. Defaults to today.
fromNoRange start, inclusive. Defaults to 30 days before to.
siteYesSite id (see list_sites)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.4.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the manage_options auth requirement, the return shape { filename, csv }, that the csv is writable as-is, the logging prerequisite tied to legal_put_consent's log_enabled, and a cvrt-legal 0.5.0+ version gate. It stops short of explicitly labeling the operation read-only/side-effect-free, which would complete the behavioral picture.

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-loads the core action and packs prerequisite, return shape, and version into compact sentences, each carrying distinct information. Slightly dense but nothing is redundant.

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?

Despite no output schema, the description explains the return value, and it covers auth, prerequisites, version requirements, and parameter semantics. An agent has everything needed to invoke it correctly.

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 the from/to/site parameters are already documented in the schema; baseline is 3. The description's cross-reference to legal_consent_log_stats for from/to rules adds minor value but no new syntax or format detail beyond the schema.

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 and resource ('Export the raw consent decision log as CSV') and notes it uses the same from/to rules as legal_consent_log_stats, which implicitly distinguishes it from that stats sibling and from legal_consent_log_get. An agent can tell what it produces (a CSV file) 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 Guidelines4/5

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

Frames usage by referencing legal_consent_log_stats for the day-range semantics, giving clear context on the family. It does not spell out explicitly when to prefer this over legal_consent_log_get or when-not to use it, but the 'raw log' vs statistics distinction is inferable.

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