Skip to main content
Glama

check_submission_status

Check the current status of a submission to see if it is pending, accepted, rejected, or paid. Requires the submission ID.

Instructions

Check status of a submission (pending, accepted, rejected, paid). Requires TASKBOUNTY_API_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
submission_idYes

Implementation Reference

  • Handler for the check_submission_status tool. Extracts submission_id from arguments, validates it, and calls tbFetch to GET /submissions/{id} with authentication.
    case "check_submission_status": {
      const id = String(a.submission_id ?? "");
      if (!id) {
        return {
          content: [{ type: "text", text: "submission_id is required" }],
          isError: true,
        };
      }
      return await tbFetch(`/submissions/${encodeURIComponent(id)}`, {
        requireAuth: true,
      });
    }
  • Schema definition for check_submission_status: requires 'submission_id' (string). Registered in the TOOLS array.
    {
      name: "check_submission_status",
      description:
        "Check status of a submission (pending, accepted, rejected, paid). Requires TASKBOUNTY_API_KEY.",
      inputSchema: {
        type: "object",
        properties: {
          submission_id: { type: "string" },
        },
        required: ["submission_id"],
      },
    },
  • src/index.ts:275-277 (registration)
    Registration: tools are listed in the TOOLS array constant and exposed via ListToolsRequestSchema handler.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: TOOLS as unknown as typeof TOOLS,
    }));
  • tbFetch helper function used by the handler to make authenticated API calls to the TaskBounty backend.
    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?

Without annotations, the description must disclose behavioral traits. The verb 'check' implies a read-only operation, but it does not explicitly state that the tool makes no changes. It also does not mention error handling or what happens with invalid submission IDs.

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 very short, with no wasted words. It is efficient but could be slightly more structured. For a simple tool, this level of conciseness is acceptable.

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

Completeness3/5

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

Given the tool's simplicity (one parameter, no output schema, no annotations), the description covers the basic purpose and a prerequisite. However, it does not address possible return values beyond the status list, or error conditions, leaving some gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description should compensate by explaining the parameter 'submission_id'. However, it provides no additional meaning beyond the parameter name, leaving the agent without understanding what constitutes a valid submission ID or how to obtain it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks submission status and lists possible statuses (pending, accepted, rejected, paid), making the purpose specific and understandable. However, it does not differentiate from sibling tools like 'get_bounty_submissions', which might also provide status information.

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?

The description provides no guidance on when to use this tool versus alternatives. It mentions the API key requirement, which is a prerequisite, but does not specify contexts or exclusions.

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