Skip to main content
Glama

query_audit_log

Read-only

Agent activity log for this workspace, filterable by tool, status and date range.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_audit_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO 8601
fromNoISO 8601
toolNoTool name
limitNo
statusNo

Output Schema

NameRequiredDescriptionDefault
entriesYesNewest first

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedOutput schema / properties / entries / items / properties / agentName / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / entries / items / properties / agentName / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / entries / items / properties / targetId / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / entries / items / properties / targetId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / entries / items / properties / targetType / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / entries / items / properties / targetType / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / entries / items / properties / tokenName / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / entries / items / properties / tokenName / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed5 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"Start of date range (ISO 8601, e.g. \"2025-01-01T00:00:00Z\")"New value: +"ISO 8601"
    • removedInput schema / properties / limit / description
      Removed value: -"Maximum results (default 50)"
    • removedInput schema / properties / status / description
      Removed value: -"Filter by call status"
    • changedInput schema / properties / to / description
      Previous value: -"End of date range (ISO 8601, e.g. \"2025-12-31T23:59:59Z\")"New value: +"ISO 8601"
    • changedInput schema / properties / tool / description
      Previous value: -"Filter by tool name (e.g. \"create_page\", \"query_database\")"New value: +"Tool name"
  3. Changed9 schema fields changed
    • changedOutput schema / properties / entries / description
      Previous value: -"Audit log entries, newest first"New value: +"Newest first"
    • removedOutput schema / properties / entries / items / properties / agentName / description
      Removed value: -"Agent brand id"
    • removedOutput schema / properties / entries / items / properties / createdAt / description
      Removed value: -"When the call happened"
    • removedOutput schema / properties / entries / items / properties / id / description
      Removed value: -"Activity row ID"
    • changedOutput schema / properties / entries / items / properties / status / description
      Previous value: -"Call status (success | error)"New value: +"success | error"
    • removedOutput schema / properties / entries / items / properties / targetId / description
      Removed value: -"Target resource ID"
    • removedOutput schema / properties / entries / items / properties / targetType / description
      Removed value: -"Target resource type"
    • removedOutput schema / properties / entries / items / properties / tokenName / description
      Removed value: -"Token label"
    • removedOutput schema / properties / entries / items / properties / tool / description
      Removed value: -"Tool that was called"
  4. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds that results are scoped to 'this workspace' and consist of agent activity, but says nothing about ordering, pagination behavior, or the default limit of 50 that would affect how an agent pages through results.

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?

A single front-loaded sentence with no filler; the resource is stated before the filters. It is efficient, though its brevity leaves several gaps that a slightly longer definition could have closed.

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 values need not be explained, and annotations cover the safety profile. However, for a five-parameter query tool with a 50-record default limit, the absence of any pagination or result-ordering guidance leaves a meaningful gap for correct invocation.

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 60%, and the description only restates the filter dimensions already documented in the schema (tool, status, date range) without adding format or semantics. The 'limit' parameter and the interaction between 'from'/'to' bounds are left entirely to the schema, so baseline 3 is appropriate.

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 names a specific resource ('Agent activity log for this workspace') and its filtering dimensions (tool, status, date range), which clearly separates it from siblings like query_database or search_workspace. The retrieval verb is only implied by 'filterable', so it stops short of a fully explicit verb+resource statement.

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?

Framing it as an 'agent activity log' implicitly signals the auditing use case, but there is no explicit when-to-use guidance, no mention of when to prefer query_database or search_workspace instead, and no stated prerequisites. The agent must infer the selection criteria.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.