Skip to main content
Glama

sui_get_object

Fetch the current state of a Sui object by ID, including owner, type, version, digest, and Move contents. Returns results from live node or archive with automatic fallback.

Instructions

Fetch a Sui object's current state by object id. Returns the object's owner, type, version, digest, previous-transaction pointer, and Move contents (BCS). Use for any 'what is object 0x...' question — bypass GraphQL for single-object reads. By default routes 'auto': tries the live full node, falls back to the Archival Service if live has expired this version. The trace records the fallback chain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_idYes0x-prefixed Sui object id (1 to 64 hex chars after 0x).
versionNoOptional historical version (Lamport). When provided, returns that specific version. Note: object versions are not +1 monotonic — if you need a prior version, fetch the current object then walk back through `previous_transaction` to find the input_version of the object in that transaction's effects.changed_objects.
sourceNoRouting policy. 'auto' (default) tries live then falls back to archive on retention boundary. 'live' / 'archive' force a single endpoint when you have specific reasons (e.g. you know the version is old, or you're benchmarking).
networkNoSui network. Defaults to the server's configured default (usually mainnet).
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the 'auto' routing's fallback behavior to Archival Service for expired versions and mentions the trace recording. It is transparent about a non-obvious behavior (version non-monotonicity caveat).

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 with zero waste. The first sentence gives core purpose, the second lists returned fields and use case, the third explains routing and trace. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema, the description thoroughly covers what is returned. Combined with excellent parameter documentation, it provides complete context for a single-object fetch tool. No gaps remain.

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

Parameters5/5

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

All 4 parameters are fully described in the schema (100% coverage). The description adds significant value beyond the schema by explaining the version parameter's non-monotonic nature with a detailed example, and the source parameter's practical routing intent. This aids correct invocation.

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 begins with a clear action verb 'Fetch' and specifies the resource 'Sui object's current state by object id'. It lists the returned fields (owner, type, version, etc.), distinguishing it from sibling tools like sui_batch_get_objects or sui_get_transaction.

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

Usage Guidelines4/5

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

It explicitly states 'Use for any "what is object 0x..." question — bypass GraphQL for single-object reads', giving clear when-to-use guidance. It also explains routing policies and when to force specific sources. It lacks explicit when-not-to-use, but the sibling list implies batch for multiple objects.

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/abhinavg6/sui-mcp-server'

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