Skip to main content
Glama
effytech

Freshdesk MCP server

by effytech

get_agents

Retrieve all agents in Freshdesk with pagination support to manage and organize support team details efficiently.

Instructions

Get all agents in Freshdesk with pagination support.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
per_pageNo

Implementation Reference

  • The handler function for the 'get_agents' tool. It fetches a list of agents from the Freshdesk API endpoint /api/v2/agents with optional pagination parameters. Includes input validation for page and per_page.
    @mcp.tool()
    async def get_agents(page: Optional[int] = 1, per_page: Optional[int] = 30)-> list[Dict[str, Any]]:
        """Get all agents in Freshdesk with pagination support."""
        # Validate input parameters
        if page < 1:
            return {"error": "Page number must be greater than 0"}
    
        if per_page < 1 or per_page > 100:
            return {"error": "Page size must be between 1 and 100"}
        url = f"https://{FRESHDESK_DOMAIN}/api/v2/agents"
        headers = {
            "Authorization": f"Basic {base64.b64encode(f'{FRESHDESK_API_KEY}:X'.encode()).decode()}"
        }
        params = {
            "page": page,
            "per_page": per_page
        }
        async with httpx.AsyncClient() as client:
            response = await client.get(url, headers=headers, params=params)
            return response.json()
Behavior2/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 mentions 'pagination support', which is useful behavioral context, but fails to disclose critical traits like whether this is a read-only operation, potential rate limits, authentication requirements, or what the output format looks like. For a list operation with zero annotation coverage, this leaves significant gaps.

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 a single, efficient sentence that front-loads the core purpose ('Get all agents in Freshdesk') and adds essential behavioral detail ('with pagination support'). Every word earns its place with zero redundancy.

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?

Given no annotations, no output schema, and 0% schema description coverage for a 2-parameter tool, the description is incomplete. It covers the basic purpose and hints at pagination but lacks details on permissions, rate limits, error handling, return format, and explicit parameter guidance, making it inadequate for safe and effective use.

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 description coverage is 0%, so the description must compensate. It mentions 'pagination support', which indirectly relates to the 'page' and 'per_page' parameters, but doesn't explain their semantics, defaults, or constraints. The description adds minimal value beyond what the parameter names imply, resulting in a baseline score.

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 action ('Get all agents') and resource ('in Freshdesk'), making the purpose immediately understandable. It distinguishes from 'view_agent' (singular) and 'search_agents' (filtered search) by specifying 'all agents', though it doesn't explicitly contrast with 'list_agents' (which doesn't exist in siblings).

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 mentions 'pagination support', which implies usage for large datasets, but provides no explicit guidance on when to use this tool versus alternatives like 'search_agents' or 'view_agent'. No context about prerequisites, exclusions, or comparative scenarios is given.

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

Related 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/effytech/freshdesk_mcp'

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