Skip to main content
Glama

search_users

Find GitHub users by username, name, or email to connect with developers, review profiles, or identify contributors for projects.

Instructions

Search for users on GitHub

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYes
orderNo
pageNo
per_pageNo
sortNo

Implementation Reference

  • Core handler function that executes the GitHub search users API request using githubRequest and buildUrl utilities.
    export async function searchUsers(github_pat: string, params: z.infer<typeof SearchUsersSchema>) {
      return githubRequest(github_pat, buildUrl("https://api.github.com/search/users", params));
    }
  • Zod schema definitions for search_users tool: SearchUsersSchema (public input) and _SearchUsersSchema (internal with github_pat).
    export const SearchUsersSchema = SearchUsersOptions;
    export const _SearchUsersSchema = SearchUsersSchema.extend({
      github_pat: z.string().describe("GitHub Personal Access Token"),
    });
  • Zod schema extension defining user-specific options for search_users (sort by followers, repositories, or joined date).
    export const SearchUsersOptions = SearchOptions.extend({
      sort: z.enum(["followers", "repositories", "joined"]).optional(),
    });
  • src/index.ts:153-157 (registration)
    Tool registration entry in the ListTools response, specifying name, description, and input schema.
    {
      name: "search_users",
      description: "Search for users on GitHub",
      inputSchema: zodToJsonSchema(search.SearchUsersSchema),
    },
  • Dispatcher case in CallToolRequest handler that parses arguments, extracts github_pat, calls the searchUsers handler, and formats the response.
    case "search_users": {
      const argsWithPat = search._SearchUsersSchema.parse(params.arguments);
      const { github_pat, ...args } = argsWithPat;
      const results = await search.searchUsers(github_pat, args);
      return {
        content: [{ type: "text", text: JSON.stringify(results, null, 2) }],
      };
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure but only states the basic action. It doesn't mention authentication requirements, rate limits, pagination behavior (implied by page/per_page parameters but not explained), what fields are returned, or whether this is a read-only operation. The description is minimal and lacks important behavioral context.

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 extremely concise at just 4 words, front-loading the essential information. There's no wasted language or unnecessary elaboration, making it efficient for quick understanding.

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

Completeness2/5

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

For a search tool with 5 parameters (including complex enums), no annotations, and no output schema, the description is severely incomplete. It doesn't explain what the tool returns, how to interpret parameters, or provide any context about GitHub's search API behavior. The minimal description is inadequate for the tool's complexity.

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

Parameters2/5

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

With 0% schema description coverage for 5 parameters (including 2 with enums), the description provides no parameter information whatsoever. It doesn't explain what 'q' represents (search query format), what the sort options mean, or how pagination works. The description fails to compensate for the complete lack of schema descriptions.

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 verb 'search' and resource 'users on GitHub', making the purpose immediately understandable. However, it doesn't differentiate this from sibling search tools like 'search_code', 'search_issues', or 'search_repositories' beyond specifying the user resource.

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. There's no mention of when this search is appropriate versus other user-related operations, nor does it reference the sibling search tools for different resource types.

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/MissionSquad/mcp-github'

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