Skip to main content
Glama

check_if_user_is_assignable

Verify whether a user can be assigned to an issue in a specific AtomGit repository by providing the repository owner, name, and assignee username.

Instructions

Check if a user can be assigned to an issue in a AtomGit repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assigneeYesUsername to be checked
ownerYesRepository owner
repoYesRepository name

Implementation Reference

  • The core handler function that executes the tool logic by making a GET request to the AtomGit API to check if the specified user is assignable to issues in the repository.
    export async function checkIfUserIsAssignable( owner: string, repo: string, assignee: string ) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/assignees/${encodeURIComponent(assignee)}`, { method: "GET", } ); }
  • Zod schema defining the input validation for the tool: owner, repo, and assignee parameters.
    export const CheckAssigneeSchema = z.object({ owner: z.string().describe("Repository owner"), repo: z.string().describe("Repository name"), assignee: z.string().describe("Username to be checked"), });
  • index.ts:106-110 (registration)
    Tool registration in the listTools response, specifying the name, description, and input schema.
    { name: "check_if_user_is_assignable", description: "Check if a user can be assigned to an issue in a AtomGit repository", inputSchema: zodToJsonSchema(issues.CheckAssigneeSchema), },
  • index.ts:371-379 (registration)
    Dispatch logic in the CallToolRequest handler that parses arguments and invokes the tool handler function.
    case "check_if_user_is_assignable": { const args = issues.CheckAssigneeSchema.parse(request.params.arguments); const { owner, repo, assignee } = args; const result = await issues.checkIfUserIsAssignable(owner, repo, assignee); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }

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/kaiyuanxiaobing/atomgit-mcp-server'

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