Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_sui_latest_checkpoint

Retrieve the current checkpoint sequence number for Sui blockchain networks to monitor chain progress and synchronize applications.

Instructions

Get latest checkpoint sequence number

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • Executes the get_sui_latest_checkpoint tool by extracting the network parameter, calling SuiService.getLatestCheckpoint, and formatting the response for the MCP tool.
    case 'get_sui_latest_checkpoint': { const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet'; const result = await suiService.getLatestCheckpoint(network); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], isError: !result.success, }; }
  • Input schema and metadata definition for the get_sui_latest_checkpoint tool, part of the tools array registered via registerSuiHandlers.
    { name: 'get_sui_latest_checkpoint', description: 'Get latest checkpoint sequence number', inputSchema: { type: 'object', properties: { network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, }, },
  • Core implementation in SuiService that performs the RPC call to sui_getLatestCheckpointSequenceNumber via the blockchain service.
    async getLatestCheckpoint( 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}`, }; } return this.blockchainService.callRPCMethod( service.id, 'sui_getLatestCheckpointSequenceNumber', [] ); }

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