Skip to main content
Glama

get_job_audit_log

Retrieve detailed audit logs for job executions to track system actions and monitor workflow activities in the Opus automation platform.

Instructions

Get detailed audit log of all system actions during job execution

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobExecutionIdYesThe job execution ID to retrieve audit log for

Implementation Reference

  • The handler function that executes the tool logic: extracts jobExecutionId, makes GET request to /job/{jobExecutionId}/audit API endpoint, and returns the response data as formatted JSON text content.
    private async getJobAuditLog(args: any) { const { jobExecutionId } = args; const response = await this.axiosInstance.get( `/job/${jobExecutionId}/audit` ); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
  • src/index.ts:92-93 (registration)
    The switch case in the CallToolRequestSchema handler that routes calls to the getJobAuditLog method.
    case "get_job_audit_log": return await this.getJobAuditLog(args);
  • src/index.ts:226-240 (registration)
    The tool registration in the getTools() method, including name, description, and inputSchema.
    { name: "get_job_audit_log", description: "Get detailed audit log of all system actions during job execution", inputSchema: { type: "object", properties: { jobExecutionId: { type: "string", description: "The job execution ID to retrieve audit log for", }, }, required: ["jobExecutionId"], }, },
  • The input schema defining the required jobExecutionId parameter for the tool.
    inputSchema: { type: "object", properties: { jobExecutionId: { type: "string", description: "The job execution ID to retrieve audit log for", }, }, required: ["jobExecutionId"], },

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/Moenamatics/Opus-MCP'

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