Skip to main content
Glama
monostate

Crossmint HR Airdrop MCP

by monostate

get_state

Retrieve the current status of Solana token airdrops to employees, enabling HR teams to monitor progress and ensure efficient role-based distribution.

Instructions

Get the current state of the airdrop process

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the get_state tool, returning formatted text of the current airdrop process state including wallet connection, token creation, employee count, airdrop status, and email status.
      private async handleGetState() {
        return {
          content: [
            {
              type: 'text',
              text: `
    Current Airdrop State:
    - Connected Wallet: ${this.state.connectedWallet ? 'Yes' : 'No'}${
                this.state.connectedWallet
                  ? `\n  Public Key: ${this.state.connectedWallet.publicKey}\n  SOL Balance: ${this.state.connectedWallet.solBalance} SOL`
                  : ''
              }
    - Created Token: ${this.state.createdToken ? 'Yes' : 'No'}${
                this.state.createdToken
                  ? `\n  Name: ${this.state.createdToken.name}\n  Symbol: ${this.state.createdToken.symbol}\n  Supply: ${this.state.createdToken.supply.toLocaleString()}\n  Mint Address: ${this.state.createdToken.mintAddress}`
                  : ''
              }
    - Employees: ${this.state.employees.length}
    - Airdrop Status: ${this.state.airdropStatus.completed ? 'Completed' : this.state.airdropStatus.started ? 'In Progress' : 'Not Started'}
    - Emails Status: ${this.state.emailsStatus.sent ? 'Sent' : 'Not Sent'}
              `.trim(),
            },
          ],
        };
      }
  • src/server.ts:298-304 (registration)
    Registration of the 'get_state' tool in the MCP server tools list, including name, description, and empty input schema (no parameters required).
      name: 'get_state',
      description: 'Get the current state of the airdrop process',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • src/server.ts:336-337 (registration)
    Dispatch logic in the tool request handler switch statement that routes 'get_state' calls to the handleGetState method.
    case 'get_state':
      return await this.handleGetState();
  • Input schema definition for the 'get_state' tool, specifying an empty object (no input parameters).
    inputSchema: {
      type: 'object',
      properties: {},
    },
Install Server

Other Tools

Related 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/monostate/Employees-Airdrop-Rewards-MCP'

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