Skip to main content
Glama
SmartBear

SmartBear MCP server

Official
by SmartBear

Contract Testing: Get Audit Log

contract-testing_get_audit_log
Read-onlyIdempotent

Retrieve audit log events for a workspace. Filter by user, event type, or timestamp to investigate pact publications, track deployments, and support compliance reporting.

Instructions

Retrieve the audit log of events in the workspace.

Toolset: Audit

Parameters:

  • since (string): Only include events at or after this ISO 8601 timestamp

  • userUuid (string): Filter events by PactFlow user UUID

  • type (string): Filter events by type (e.g. 'pact_publication')

  • sort (string): Sort order: '+timestamp' (asc, default) or '-timestamp' (desc)

  • from (string): Start result set from this audit event UUID (keyset pagination)

  • pageNumber (number): Page number (default: 1)

  • pageSize (number): Results per page (max 100) (default: 5)

Use Cases: 1. Review recent changes to pacticipants, webhooks, or secrets 2. Investigate who published a specific pact or verification 3. Filter events by user or event type for compliance reporting 4. Track deployment recording activity across environments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoStart result set from this audit event UUID (keyset pagination)
sortNoSort order: '+timestamp' (asc, default) or '-timestamp' (desc)
typeNoFilter events by type (e.g. 'pact_publication')
sinceNoOnly include events at or after this ISO 8601 timestamp
pageSizeNoResults per page (max 100)
userUuidNoFilter events by PactFlow user UUID
pageNumberNoPage number
Install Server

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, lowering the burden. The description adds useful behavioral context: workspace scope, default sort order, keyset pagination mechanism, and default page size. It does not mention rate limits or auth, but the annotation coverage makes this gap minor.

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?

The description is well-structured with a front-loaded purpose, a clear Toolset label, and an organized use-case list. However, the Parameters block largely duplicates the input schema, adding unnecessary length.

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?

It covers purpose, workspace scope, all seven parameters, defaults, and realistic use cases. The only noticeable gap is the absence of any description of the audit event record shape, which matters more because there is no output schema.

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% with descriptions for all seven parameters. The description largely restates those schema meanings and adds only an explicit 'keyset pagination' label and use-case hints, so it stays at the schema baseline without significant added value.

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 one-sentence description 'Retrieve the audit log of events in the workspace' uses a specific verb and resource, and the use-case list clarifies the tool's role. Among the many siblings, no other tool targets audit logs, so it is inherently differentiated.

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

Usage Guidelines5/5

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

The 'Use Cases' section lists four concrete scenarios (reviewing changes, investigating pact publications, compliance filtering, tracking deployments), telling an agent exactly when to call it. No alternative audit-log tool exists among siblings, so no when-not-to-use instruction is needed.

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

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/SmartBear/smartbear-mcp'

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