Skip to main content
Glama
lemenkov
by lemenkov

list_projects

Retrieve and filter projects from Pagure git forges with namespace selection, search patterns, and pagination controls.

Instructions

List Pagure projects/packages.

Args: namespace: Project namespace (rpms, container, modules, etc.) pattern: Search pattern for project name page: Page number (default: 1) per_page: Results per page (default: 20)

Returns: JSON string with project list and pagination info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceNorpms
patternNo
pageNo
per_pageNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • MCP tool handler registration and wrapper for listing Pagure projects.
    @mcp.tool()
    async def list_projects(
        namespace: str = "rpms",
        pattern: Optional[str] = None,
        page: int = 1,
        per_page: int = 20,
    ) -> str:
        """List Pagure projects/packages.
    
        Args:
            namespace: Project namespace (rpms, container, modules, etc.)
            pattern: Search pattern for project name
            page: Page number (default: 1)
            per_page: Results per page (default: 20)
    
        Returns:
            JSON string with project list and pagination info
        """
        client = get_client()
        result = await client.list_projects(namespace, pattern, page, per_page)
    
        import json
        return json.dumps(result, indent=2)
  • Actual API implementation for listing Pagure projects.
    async def list_projects(
        self,
        namespace: Optional[str] = "rpms",
        pattern: Optional[str] = None,
        page: int = 1,
        per_page: int = 20,
    ) -> Dict[str, Any]:
        """List projects/packages.
    
        Args:
            namespace: Project namespace (rpms, container, modules, etc.)
            pattern: Search pattern for project name
            page: Page number
            per_page: Results per page
    
        Returns:
            Dict with projects list and pagination info
        """
        params = {
            "namespace": namespace,
            "page": page,
            "per_page": per_page,
        }
        if pattern:
            params["pattern"] = pattern
    
        response = await self.client.get(
            f"{self.api_base}/projects",
            params=params,
            headers=self._get_headers(),
        )
        response.raise_for_status()
        return response.json()
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions pagination behavior (page/per_page defaults) and that it returns JSON with pagination info, which is helpful. However, it doesn't cover important aspects like rate limits, authentication requirements, error conditions, or whether this is a read-only operation (though 'List' implies it).

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 well-structured with clear sections for Args and Returns. Each sentence earns its place by providing essential information. It's appropriately sized for a 4-parameter tool with no annotations. The information is front-loaded with the core purpose first, followed by parameter details.

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 tool's moderate complexity (4 parameters, no annotations, but has output schema), the description is reasonably complete. It explains the purpose, documents all parameters, and mentions the return format. The output schema existence means the description doesn't need to detail return values. However, it lacks context about when to use this versus sibling tools.

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

Parameters4/5

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

With 0% schema description coverage, the description must compensate for the schema's lack of parameter documentation. It successfully explains all 4 parameters: namespace (with examples), pattern (search functionality), page, and per_page (including defaults). This adds significant value beyond the bare schema, though it could provide more detail about namespace options or pattern matching behavior.

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 ('List') and resource ('Pagure projects/packages'), making the purpose immediately understandable. It distinguishes itself from siblings like get_project_info by focusing on listing rather than retrieving detailed information about a single project. However, it doesn't explicitly contrast with other list tools like list_branches or list_pull_requests.

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 doesn't mention when to choose list_projects over get_project_info for single-project details, or how it differs from list_branches or list_pull_requests. There's no context about prerequisites, typical use cases, or limitations.

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/lemenkov/mcp-pagure'

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