Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_sui_object

Retrieve detailed information about Sui blockchain objects by ID, including type, ownership, content, and transaction history through Grove's Pocket Network server.

Instructions

Get object details by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
objectIdYesSui object ID
optionsNoOptional: Display options
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • Tool definition including name, description, and inputSchema for 'get_sui_object'
    {
      name: 'get_sui_object',
      description: 'Get object details by ID',
      inputSchema: {
        type: 'object',
        properties: {
          objectId: {
            type: 'string',
            description: 'Sui object ID',
          },
          options: {
            type: 'object',
            description: 'Optional: Display options',
            properties: {
              showType: { type: 'boolean' },
              showOwner: { type: 'boolean' },
              showPreviousTransaction: { type: 'boolean' },
              showDisplay: { type: 'boolean' },
              showContent: { type: 'boolean' },
              showBcs: { type: 'boolean' },
              showStorageRebate: { type: 'boolean' },
            },
          },
          network: {
            type: 'string',
            enum: ['mainnet', 'testnet'],
            description: 'Network type (defaults to mainnet)',
          },
        },
        required: ['objectId'],
      },
    },
  • Tool handler logic that parses arguments and calls SuiService.getObject to execute the tool
    case 'get_sui_object': {
      const objectId = args?.objectId as string;
      const options = args?.options as any;
      const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet';
    
      const result = await suiService.getObject(objectId, options, network);
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2),
          },
        ],
        isError: !result.success,
      };
    }
  • Core implementation of getObject that constructs RPC call to 'sui_getObject' via blockchainService
    async getObject(
      objectId: string,
      options?: {
        showType?: boolean;
        showOwner?: boolean;
        showPreviousTransaction?: boolean;
        showDisplay?: boolean;
        showContent?: boolean;
        showBcs?: boolean;
        showStorageRebate?: boolean;
      },
      network: 'mainnet' | 'testnet' = 'mainnet'
    ): Promise<EndpointResponse> {
      const service = this.blockchainService.getServiceByBlockchain('sui', network);
    
      if (!service) {
        return {
          success: false,
          error: `Sui service not found for ${network}`,
        };
      }
    
      const params: any[] = [objectId];
      if (options) {
        params.push({
          showType: options.showType,
          showOwner: options.showOwner,
          showPreviousTransaction: options.showPreviousTransaction,
          showDisplay: options.showDisplay,
          showContent: options.showContent,
          showBcs: options.showBcs,
          showStorageRebate: options.showStorageRebate,
        });
      }
    
      return this.blockchainService.callRPCMethod(service.id, 'sui_getObject', params);
    }
  • src/index.ts:88-101 (registration)
    Registers the Sui tools (including get_sui_object) by including registerSuiHandlers in the tools array for the MCP server
    const tools: Tool[] = [
      ...registerBlockchainHandlers(server, blockchainService),
      ...registerDomainHandlers(server, domainResolver),
      ...registerTransactionHandlers(server, advancedBlockchain),
      ...registerTokenHandlers(server, advancedBlockchain),
      ...registerMultichainHandlers(server, advancedBlockchain),
      ...registerContractHandlers(server, advancedBlockchain),
      ...registerUtilityHandlers(server, advancedBlockchain),
      ...registerEndpointHandlers(server, endpointManager),
      ...registerSolanaHandlers(server, solanaService),
      ...registerCosmosHandlers(server, cosmosService),
      ...registerSuiHandlers(server, suiService),
      ...registerDocsHandlers(server, docsManager),
    ];
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states it 'gets' details, implying a read-only operation, but doesn't clarify aspects like authentication needs, rate limits, error handling, or what 'details' entail (e.g., format, depth). For a tool with no annotations, this is a significant gap in transparency.

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?

The description is a single, efficient sentence with zero waste—'Get object details by ID'—front-loading the core purpose. It's appropriately sized for a straightforward tool, avoiding unnecessary elaboration.

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?

Given no annotations and no output schema, the description is minimal but covers the basic purpose. However, for a tool with 3 parameters (including a nested object) and no output schema, it lacks details on return values, error cases, or behavioral traits, making it adequate but with clear gaps in 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 description coverage is 100%, with clear descriptions for parameters like 'objectId' and 'network', and the 'options' object well-documented. The description adds no additional meaning beyond the schema, such as explaining the significance of options or network choices. Baseline 3 is appropriate as the schema does the heavy lifting.

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 'Get object details by ID' clearly states the verb ('Get') and resource ('object details'), specifying it's by object ID. It's specific enough to understand the core function, though it doesn't explicitly differentiate from sibling tools like 'get_sui_owned_objects' or 'get_sui_transaction' which might also retrieve object-related data.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'get_sui_owned_objects' (for listing objects) or 'get_sui_transaction' (for transaction-related object data), nor does it specify prerequisites or contexts for usage, leaving the agent to infer based on the name alone.

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/buildwithgrove/mcp-pocket'

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