Skip to main content
Glama

List audit runs

list_audit_runs
Read-onlyIdempotent

List retained free audit runs for the store, newest first, with stable run ids, dates and a continuation cursor. Reads only; never starts collection or spends audit allowance.

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": {
      "audit": "<audit>"
    },
    "name": "list_audit_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
auditYes
limitNoInteger from 1 to 100 runs per page.
storeNoThe connected store to use. Omit when only one is connected.
cursorNoThe nextCursor from the previous page; maximum 1,000 characters.
domainNoThe Shopify storefront to check, e.g. example.com. Required until a store is connected; afterwards, omit it to use a connected store.
countryNoTwo-letter ISO country code, such as GB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description still adds real value beyond that: 'retained' scopes results to surviving runs, 'newest first' fixes ordering, and 'never spends audit allowance' discloses a cost side effect that no annotation expresses. Return contents (run ids, dates, cursor) are also previewed.

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?

Two sentences, front-loaded with the verb and scope, then the cost/read-only constraint. Every clause carries information; nothing is padded.

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?

With six parameters, an enum, no output schema and four annotations, the definition covers the essentials: what is returned, ordering, stable ids, cursor paging, and that reads are free. It stops short of explaining how to page (when to pass cursor) or how the store/domain/country parameters interact, which the schema partially handles.

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 83%, above the threshold where the schema carries the burden, so baseline 3 applies. The description echoes store scoping and the continuation cursor but adds no format details for limit, domain, country, or the audit enum values.

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?

Specific verb and resource: 'List retained free audit runs for the store, newest first.' The 'never starts collection or spends audit allowance' clause implicitly separates it from the run_* siblings, but the similar-sounding list_store_audits and list_work are not addressed, so an agent must still check those schemas.

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?

Usage is only implied: the tool is framed as a read-only retrieval and the explicit 'never starts collection or spends audit allowance' tells the agent not to reach for it to kick off a run. There is no statement of when to prefer it over get_store_audit_result or list_store_audits, and no cursor workflow guidance beyond the mention of a continuation cursor.

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.