Skip to main content
Glama

get_consent_ledger

Retrieve the recent consent trail from the audit ledger to review data-handling approvals and classifications by agent and timestamp.

Instructions

Retrieve recent consent events from the audit ledger.

Returns the data-handling consent trail — what data was approved or
classified, by which agent, and when — so you can review or report on how
sensitive data has been treated. Reads the consent_ledger that
log_consent_event writes to.

Args:
    limit: Number of most recent ledger rows to return, newest first
        (default 30).

Returns:
    A JSON text block listing the consent events (id, timestamp, action,
    data_classification, agent_slug, notes).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool reads the consent_ledger and returns a JSON text block with specific fields, indicating it is a read-only operation. However, it does not mention potential side effects, idempotency, or access restrictions, though these are minimal for a read tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured. It opens with a clear purpose sentence, followed by a paragraph detailing the return content, and ends with parameter documentation in a consistent format. Every sentence adds value without redundancy.

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?

Given the tool's simplicity (one parameter, no annotations, but with an output schema implied), the description is complete. It explains the tool's function, the parameter, and what the output contains, including specific fields. There is no missing information needed for correct invocation.

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 0% schema description coverage, the description adds significant value by explaining the 'limit' parameter: 'Number of most recent ledger rows to return, newest first (default 30).' This clarifies the purpose and default behavior beyond the schema's bare specification.

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?

The description clearly states it retrieves recent consent events from the audit ledger, specifying the verb 'retrieve' and the resource 'consent events'. It distinguishes itself from the sibling tool 'log_consent_event' which writes to the ledger, thus clarifying its read-only purpose.

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?

The description implies usage for reviewing or reporting on consent data and mentions it reads the ledger that 'log_consent_event' writes to, but it does not explicitly state when to use this tool versus alternatives or when not to use it. Usage is inferred rather than explicitly guided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SVerITG/Metis_PH'

If you have feedback or need assistance with the MCP directory API, please join our Discord server