Skip to main content
Glama

spraay_audit_query

Read-only

Retrieve audit trail entries filtered by actor, action, resource, or time range. Entries sorted newest first, cost $0.005 USDC.

Instructions

Query the audit trail by actor, action, resource, or time range. Returns matching entries sorted newest first. Data persists in Supabase. Costs $0.005 USDC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actorNoFilter by actor wallet address
limitNoMax results (default: '50', max: '500')
sinceNoStart time in ISO 8601 (e.g. '2026-03-01T00:00:00Z')
untilNoEnd time in ISO 8601
actionNoFilter by action type (e.g. 'payment.sent')
resourceNoFilter by resource identifier (partial match)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesTrue when the gateway call succeeded; false when it returned an error.
dataNoThe gateway response payload on success. The exact shape depends on the tool (see the tool description and the JSON in the text content block).
errorNoHuman-readable error message, present only when ok is false.
Behavior3/5

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

Annotations declare readOnlyHint and openWorldHint, so safety is clear. Description adds that data persists in Supabase and costs $0.005 per query, but does not disclose rate limits, authentication requirements, or default behavior when no parameters are provided.

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?

Three sentences cover core functionality, sorting, and cost. Front-loaded with the main action. No redundant information.

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?

Output schema exists, so return type is covered. However, the description does not specify default behavior when no filters are applied (e.g., returns most recent entries), nor does it mention pagination beyond the limit parameter. For a tool with all optional parameters, more context on expected output with no filters would improve completeness.

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 6 parameters. The description reiterates filter dimensions (actor, action, resource, time range) but adds no new meaning beyond the schema. No parameter relationships or combinations are explained.

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?

Description clearly states the tool queries the audit trail with filters (actor, action, resource, time range) and returns sorted results. The name 'audit_query' contrasts with sibling 'spraay_audit_log' (likely a write tool) and 'spraay_logs_query' (for general logs), but the description does not explicitly distinguish them.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives like spraay_logs_query or spraay_audit_log. The description does not mention prerequisites, when not to use, or trade-offs.

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/plagtech/spraay-x402-mcp'

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