Skip to main content
Glama

t2000_claim_rewards

Claim pending protocol rewards from lending positions and automatically convert them to USDC.

Instructions

Claim pending protocol rewards from lending positions and auto-convert to USDC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for the tool 't2000_claim_rewards'. It invokes 'agent.claimRewards()' within a mutex lock to safely claim and convert protocol rewards.
    server.tool(
      't2000_claim_rewards',
      'Claim pending protocol rewards from lending positions and auto-convert to USDC.',
      {},
      async () => {
        try {
          const result = await mutex.run(() => agent.claimRewards());
          return { content: [{ type: 'text', text: JSON.stringify(result) }] };
        } catch (err) {
          return errorResult(err);
        }
      },
    );

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/mission69b/t2000'

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