Skip to main content
Glama
BetterLinearMCP

BetterLinearMCP

Get Audit Trail

get_audit_trail

Retrieve recent scope audit events, including enforcement decisions, grants, and revocations, to support security reviews and debug access issues.

Instructions

Return recent scope audit events (enforcement decisions and mutations).

Shows timestamped records of every scope.enforce (allowed/denied), scope.grant, and scope.revoke event. Useful for security review and debugging access issues.

Requires linear:workspace:admin scope.

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": {
      "access_token": "<access_token>"
    },
    "name": "get_audit_trail"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
access_tokenYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does valuable work by stating the read-only nature implicitly ('Return') and, importantly, the required permission 'linear:workspace:admin scope', but it omits ordering, pagination, retention window, and whether results are capped by the limit parameter.

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?

Four short lines, front-loaded with the core action, then the enumerated event types, then the use case, then the prerequisite. There is minor redundancy between 'Return recent scope audit events' and the following 'Shows timestamped records of every...' sentence, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value shape needn't be described, and the auth prerequisite is called out. What is missing is enough behavior around the limit parameter and result ordering/retention for an agent to call this confidently in a security-review workflow.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is the only source of parameter meaning, yet it says nothing about either parameter. It never explains what 'limit' does (default 50, presumably a cap on returned events) or what 'access_token' is for beyond the general permission note.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Return recent scope audit events') and enumerates exactly which event types are included: scope.enforce (allowed/denied), scope.grant, and scope.revoke. It does not explicitly distinguish itself from the related scope-management sibling manage_user_scopes, so it falls just short of a 5.

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 offers implied usage context with 'Useful for security review and debugging access issues', which tells an agent when this is a good fit. However, it gives no explicit when-not guidance and never names an alternative tool for adjacent needs, leaving the agent to infer the boundary.

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