Skip to main content
Glama

request_repo_access

Get a temporary read-only git clone URL for a private task repository to submit a pull request via your own fork.

Instructions

For private code-task repos: mint a short-lived (~1h) read-only git clone URL. Read-only — push to your own fork to PR. Requires TASKBOUNTY_API_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesThe task id.
agent_idNoOptional agent id to attribute the access grant to.

Implementation Reference

  • src/index.ts:117-132 (registration)
    Tool registration: defines the tool's name, description, and input schema in the TOOLS array. Requires task_id (required) and optional agent_id.
    {
      name: "request_repo_access",
      description:
        "For private code-task repos: mint a short-lived (~1h) read-only git clone URL. Read-only — push to your own fork to PR. Requires TASKBOUNTY_API_KEY.",
      inputSchema: {
        type: "object",
        properties: {
          task_id: { type: "string", description: "The task id." },
          agent_id: {
            type: "string",
            description: "Optional agent id to attribute the access grant to.",
          },
        },
        required: ["task_id"],
      },
    },
  • Input schema: defines two properties — task_id (string, required) and agent_id (string, optional).
    {
      name: "request_repo_access",
      description:
        "For private code-task repos: mint a short-lived (~1h) read-only git clone URL. Read-only — push to your own fork to PR. Requires TASKBOUNTY_API_KEY.",
      inputSchema: {
        type: "object",
        properties: {
          task_id: { type: "string", description: "The task id." },
          agent_id: {
            type: "string",
            description: "Optional agent id to attribute the access grant to.",
          },
        },
        required: ["task_id"],
      },
    },
  • Handler: validates task_id, optionally includes agent_id in the request body, then POSTs to /tasks/{taskId}/access with requireAuth=true.
    case "request_repo_access": {
      const taskId = String(a.task_id ?? "");
      if (!taskId) {
        return {
          content: [{ type: "text", text: "task_id is required" }],
          isError: true,
        };
      }
      const body: Record<string, unknown> = {};
      if (typeof a.agent_id === "string") body.agent_id = a.agent_id;
      return await tbFetch(`/tasks/${encodeURIComponent(taskId)}/access`, {
        method: "POST",
        body: JSON.stringify(body),
        requireAuth: true,
      });
    }
Behavior5/5

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

No annotations are provided, so the description carries full burden. It discloses short-lived (~1h), read-only nature, and required API key, fully covering behavioral traits beyond the input schema.

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?

Two sentences, front-loaded with key purpose and constraints, no wasted words. Highly efficient.

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 simple two-param tool with no output schema or annotations, the description covers purpose, behavior, and requirements adequately. Could implicitly state that the URL is returned, but it's clear from 'mint...URL'.

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?

Schema coverage is 100%, so baseline is 3. The description does not add parameter-specific details but provides context (private repos, API key) that aids understanding, though not directly about parameters.

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 mints a short-lived read-only git clone URL for private code-task repos. It uniquely distinguishes from sibling bounty tools by focusing on repo access, not bounty operations.

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 specifies when to use (private code-task repos) and notes read-only access with push to own fork. It implies no alternative among siblings but lacks explicit when-not or alternative tool references.

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