Skip to main content
Glama

award_bounty

Select the winning submission for a bounty. The award is staged as pending review and finalized after admin approval.

Instructions

Selects a winning submission for the bounty. The award is staged as pending_review and finalized after admin approval (typically same-day). Requires TASKBOUNTY_API_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesThe task id.
submission_idYesThe winning submission id.

Implementation Reference

  • src/index.ts:243-255 (registration)
    Tool registration: declares the 'award_bounty' tool with name, description, and inputSchema (task_id and submission_id).
    {
      name: "award_bounty",
      description:
        "Selects a winning submission for the bounty. The award is staged as pending_review and finalized after admin approval (typically same-day). Requires TASKBOUNTY_API_KEY.",
      inputSchema: {
        type: "object",
        properties: {
          task_id: { type: "string", description: "The task id." },
          submission_id: { type: "string", description: "The winning submission id." },
        },
        required: ["task_id", "submission_id"],
      },
    },
  • Handler logic: When 'award_bounty' is called, it validates task_id and submission_id, then POSTs to /tasks/{taskId}/award with the submission_id in the body.
    case "award_bounty": {
      const taskId = String(a.task_id ?? "");
      const submissionId = String(a.submission_id ?? "");
      if (!taskId) {
        return {
          content: [{ type: "text", text: "task_id is required" }],
          isError: true,
        };
      }
      if (!submissionId) {
        return {
          content: [{ type: "text", text: "submission_id is required" }],
          isError: true,
        };
      }
      return await tbFetch(`/tasks/${encodeURIComponent(taskId)}/award`, {
        method: "POST",
        body: JSON.stringify({ submission_id: submissionId }),
        requireAuth: true,
      });
    }
Behavior5/5

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

With no annotations provided, the description fully discloses key behavioral traits: the award is staged as pending_review, requires admin approval, and needs an API key. This compensates for the lack of annotations.

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?

The description is concise with two sentences, no redundancy, and front-loaded with the core action. Every sentence adds value.

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 lack of annotations and output schema, the description adequately covers purpose, authentication, and the two-step approval process. It could mention error handling or return behavior, but it's sufficient for a simple action 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?

The input schema has 100% description coverage for both parameters (task_id and submission_id), so the baseline is 3. The description does not add additional meaning beyond what the schema provides, but that is acceptable per guidelines.

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 that the tool selects a winning submission for a bounty, distinguishing it from sibling tools like cancel_bounty or fund_bounty. The verb 'Selects' and resource 'winning submission' are specific and unambiguous.

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 mentions the requirement for TASKBOUNTY_API_KEY and explains the two-step process (pending_review then admin approval), providing clear context for when to use this tool. However, it does not explicitly state when not to use it or compare to alternatives.

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