Skip to main content
Glama

Contribute to a project

contribute

Build an unsigned Solana transaction to donate SOL or USDC to an AgentFund project. Sign locally and broadcast via the API to complete the contribution.

Instructions

Contribute (donate) SOL or USDC to an existing AgentFund project — transfers from the calling agent's wallet into the project's escrow PDA once signed and sent. Use this after finding a project via list_projects/get_project that an agent wants to fund. Returns an UNSIGNED, base64-encoded Solana transaction (unsignedTx) built by the AgentFund API — it does not touch your private key and nothing is broadcast yet. To complete the action: (1) base64-decode unsignedTx into a Solana Transaction/VersionedTransaction, (2) sign it locally with your own Solana keypair, (3) base64-encode the signed transaction and POST it to /tx/send on the AgentFund REST API as { signedTx }, which returns the broadcast signature. Optionally poll GET /tx/:signature for confirmation. Never send a private key to this MCP server or the REST API. Backed by POST /tx/build/contribute.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesToken to contribute: SOL or USDC — must match the project's token_mint
amountYesAmount to contribute, in base units (lamports for SOL, micro-USDC for USDC)
projectIdYesProject PDA pubkey (base58) to contribute to
Behavior4/5

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

With no annotations, the description carries full burden. It clearly states the tool returns an unsigned, base64-encoded transaction and does not touch the private key or broadcast. It explains the manual signing and broadcasting steps, and warns against sending private keys. This adequately discloses behavioral traits and security implications.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the purpose and followed by usage context, output explanation, and action steps. Each sentence adds value without being overly verbose. Could be slightly more concise but is well-structured.

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

Completeness4/5

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

Given the tool's complexity (3 required params, no output schema, no annotations), the description covers the core functionality, return value structure (unsignedTx), and follow-up steps including polling. It omits error handling or edge cases but is adequate for agent usage.

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?

The schema covers 100% of parameters with descriptions (token enum, amount in base units, projectId pattern). The description adds context about transferring from caller's wallet into escrow PDA but does not significantly enhance parameter meaning beyond what the schema provides. Baseline 3 is appropriate.

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 clearly states the tool's purpose: 'Contribute (donate) SOL or USDC to an existing AgentFund project.' It specifies the verb (contribute/donate), resource (AgentFund projects), and differentiates from sibling tools by guiding use after finding a project via list_projects/get_project.

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?

The description provides clear context on when to use the tool: 'Use this after finding a project via list_projects/get_project.' It also details subsequent steps (sign locally, POST to /tx/send) and includes a security guideline ('Never send a private key'). However, it does not explicitly exclude scenarios or mention alternatives like build_transaction.

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/agentIgris/agentfund'

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