Skip to main content
Glama

list_open_bounties

List currently open, funded bounties on TaskBounty. Filter by platform or language to find rewards in USDC, ETH, or BTC.

Instructions

List currently open, funded bounties on TaskBounty. Returns title, reward, repo, language, and task id/slug.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformNoOptional platform filter (e.g. 'github').
languageNoOptional language filter (e.g. 'typescript').
limitNoMax items to return (default 25).

Implementation Reference

  • Tool definition and input schema for 'list_open_bounties'. Accepts optional platform, language, and limit parameters.
    const TOOLS = [
      {
        name: "list_open_bounties",
        description:
          "List currently open, funded bounties on TaskBounty. Returns title, reward, repo, language, and task id/slug.",
        inputSchema: {
          type: "object",
          properties: {
            platform: {
              type: "string",
              description: "Optional platform filter (e.g. 'github').",
            },
            language: {
              type: "string",
              description: "Optional language filter (e.g. 'typescript').",
            },
            limit: {
              type: "number",
              description: "Max items to return (default 25).",
            },
          },
        },
      },
  • Handler for 'list_open_bounties' - builds query params from args and calls tbFetch('/bounties.json') with optional query string.
    case "list_open_bounties": {
      const params = new URLSearchParams();
      if (typeof a.platform === "string") params.set("platform", a.platform);
      if (typeof a.language === "string") params.set("language", a.language);
      if (typeof a.limit === "number") params.set("limit", String(a.limit));
      const qs = params.toString();
      return await tbFetch(`/bounties.json${qs ? `?${qs}` : ""}`);
    }
  • src/index.ts:275-277 (registration)
    Registration of the tool via ListToolsRequestSchema handler, returning the TOOLS array.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: TOOLS as unknown as typeof TOOLS,
    }));
  • src/index.ts:279-291 (registration)
    CallToolRequestSchema handler with switch-case dispatching to the list_open_bounties handler.
    server.setRequestHandler(CallToolRequestSchema, async (req) => {
      const { name, arguments: args = {} } = req.params;
      const a = args as Record<string, unknown>;
    
      switch (name) {
        case "list_open_bounties": {
          const params = new URLSearchParams();
          if (typeof a.platform === "string") params.set("platform", a.platform);
          if (typeof a.language === "string") params.set("language", a.language);
          if (typeof a.limit === "number") params.set("limit", String(a.limit));
          const qs = params.toString();
          return await tbFetch(`/bounties.json${qs ? `?${qs}` : ""}`);
        }
  • tbFetch helper function that makes authenticated HTTP requests to the TaskBounty API. Used by the list_open_bounties handler.
    async function tbFetch(
      path: string,
      init: RequestInit & { requireAuth?: boolean } = {},
    ): Promise<ToolResult> {
      const { requireAuth, headers, ...rest } = init;
      if (requireAuth && !API_KEY) {
        return {
          content: [
            {
              type: "text",
              text: "Missing TASKBOUNTY_API_KEY environment variable. Set it to your tb_live_* key from https://www.task-bounty.com/dashboard/api-keys.",
            },
          ],
          isError: true,
        };
      }
      const url = `${API_BASE}${path}`;
      const finalHeaders: Record<string, string> = {
        Accept: "application/json",
        ...(headers as Record<string, string> | undefined),
      };
      if (API_KEY) finalHeaders["Authorization"] = `Bearer ${API_KEY}`;
      if (rest.body && !finalHeaders["Content-Type"]) {
        finalHeaders["Content-Type"] = "application/json";
      }
    
      let res: Response;
      try {
        res = await fetch(url, { ...rest, headers: finalHeaders });
      } catch (err) {
        return {
          content: [
            {
              type: "text",
              text: `Network error calling ${url}: ${err instanceof Error ? err.message : String(err)}`,
            },
          ],
          isError: true,
        };
      }
    
      const text = await res.text();
      if (!res.ok) {
        return {
          content: [
            {
              type: "text",
              text: `HTTP ${res.status} ${res.statusText} from ${url}\n\n${text}`,
            },
          ],
          isError: true,
        };
      }
      return { content: [{ type: "text", text }] };
    }
Behavior3/5

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

No annotations provided, so description carries full burden. It correctly implies a read-only operation and lists return fields, but fails to mention default ordering, pagination behavior, or whether results are sorted. For a simple list tool, this is adequate but not comprehensive.

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?

Single sentence efficiently conveys purpose and return data. No unnecessary words; front-loaded with action.

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 three optional parameters and no output schema, the description covers the tool's basic function and output. Missing details like default limit (though schema says 25) and whether filters are exact or partial matches. Still mostly complete for a straightforward list tool.

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?

Input schema covers all three parameters with descriptions (platform, language, limit). Schema description coverage is 100%, so baseline 3. The description adds no additional insights beyond the schema (e.g., format of language filter).

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 lists 'currently open, funded bounties' and specifies the returned fields (title, reward, repo, language, task id/slug). This contrasts with sibling tools like list_my_bounties (personal) and get_bounty_detail (single bounty).

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?

No guidance on when to use this tool versus alternatives such as list_my_bounties or get_bounty_detail. Context signals show siblings exist, but the description does not differentiate usage scenarios.

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/eliottreich/taskbounty-mcp-server'

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