Skip to main content
Glama

query_transactions

Query raw Sui transaction data using filters for sender, affected address/object, function, or checkpoint range, enabling fund tracing and on-chain activity analysis.

Instructions

Query raw Sui transactions with specific filters (sender, affected address/object, function, checkpoint range). Note: only ONE of affected_address, affected_object, or function can be used per query (Sui GraphQL limitation). For human-readable wallet activity, prefer get_transaction_history instead.

ATTRIBUTION WARNING: the function filter matches any transaction containing that call, including PTBs where it is one leg among several protocols. A transaction's balance changes cover the WHOLE PTB, so summing them per protocol over-attributes — a big Cetus swap in the same PTB will be counted as your protocol's volume. Set include_functions to see every Move call in each transaction, and prefer the protocol's own events (query_events) when measuring per-protocol flow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoPagination cursor
limitNoMax results (default 20)
senderNoFilter by sender address
networkNoWhich Sui network to run this call against: 'mainnet' (default), 'testnet', or 'devnet'. Set this per-call — different tool calls in the same session can target different networks (e.g. to compare a value on testnet against mainnet).
functionNoFilter by Move function (e.g. 0x2::coin::transfer or 0x2::pay). Mutually exclusive with affected_address and affected_object.
affected_objectNoFilter by affected object ID. Mutually exclusive with affected_address and function.
affected_addressNoFilter by affected address (sender, sponsor, or recipient). Mutually exclusive with affected_object and function.
after_checkpointNoOnly transactions after this checkpoint
before_checkpointNoOnly transactions before this checkpoint
include_functionsNoReturn every Move call in each transaction, so you can see whether the filtered package was the whole transaction or one leg of a multi-protocol PTB.
Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It reveals the Sui GraphQL limitation (only one of affected_address, affected_object, or function may be used), explains the PTB attribution pitfall, and describes how include_functions mitigates it. This is high-value behavioral context beyond the schema.

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 long but structured into a purpose/guidance section and a warning paragraph. Each sentence earns its place, though the attribution warning is dense. It is appropriately detailed for a complex tool with 10 parameters but not perfectly concise.

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?

For a 10-parameter tool with no output schema and no annotations, the description covers the most important contextual concerns: filter exclusivity, PTB attribution, and alternative tools. It stops short of describing the return shape or pagination behavior, but the raw transaction intent is clear enough for an agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description enhances the meaning of tricky parameters: it explains why function filtering is dangerous for attribution and when to use include_functions. However, most parameter details are left to the schema, so the gain is modest but non-trivial.

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 description opens with 'Query raw Sui transactions with specific filters' and enumerates the filter types (sender, affected address/object, function, checkpoint range), making the tool's scope immediately clear. It also distinguishes itself from the sibling tool get_transaction_history by labeling itself 'raw' and explicitly directing human-readable queries to that sibling.

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 description gives explicit when-to-use guidance: 'For human-readable wallet activity, prefer get_transaction_history instead' and warns against using the function filter for per-protocol volume metrics, suggesting query_events as the alternative. It also states the mutual-exclusivity constraint among three filters, which is a crucial usage rule.

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/0xfreak0/sui-mcp'

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