Skip to main content
Glama

get_agent_stats

Retrieve performance statistics for a specific agent, including connections, emails sent, and open rates, to monitor outreach effectiveness.

Instructions

Get performance statistics for a specific agent (connections, emails sent, open rates, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentIdYesThe agent ID

Implementation Reference

  • The handler for 'get_agent_stats' tool which calls the API client.
    handler: async (args: Record<string, unknown>) => {
      const stats = await client.getAgentStats(
        args.agentId as string,
      );
      return JSON.stringify(stats, null, 2);
    },
  • Input schema for the 'get_agent_stats' tool.
    inputSchema: {
      type: 'object' as const,
      properties: {
        agentId: { type: 'string', description: 'The agent ID' },
      },
      required: ['agentId'],
    },
  • Registration of 'get_agent_stats' tool within getAgentTools.
      name: 'get_agent_stats',
      description:
        'Get performance statistics for a specific agent (connections, emails sent, open rates, etc.)',
      inputSchema: {
        type: 'object' as const,
        properties: {
          agentId: { type: 'string', description: 'The agent ID' },
        },
        required: ['agentId'],
      },
      handler: async (args: Record<string, unknown>) => {
        const stats = await client.getAgentStats(
          args.agentId as string,
        );
        return JSON.stringify(stats, null, 2);
      },
    },
  • API client method that performs the actual network request for agent stats.
    async getAgentStats(id: string) {
      return this.request('GET', `/api/stats/unified?agentId=${id}&period=7d`);
    }
Behavior4/5

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

Without annotations, the description carries the burden of behavioral disclosure. It effectively describes the return value characteristics by listing specific metrics (connections, emails sent, open rates), which substitutes for the missing output schema. However, it lacks safety information (idempotency, error handling) that annotations would typically provide.

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 with the action verb front-loaded. The parenthetical examples add value without verbosity. No wasted words or redundant phrases.

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 low complexity (1 simple parameter, no nested objects) and lack of output schema, the description adequately compensates by listing example return values. It is complete enough for an agent to understand the tool's scope, though error handling details would add value.

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?

With 100% schema description coverage for the single agentId parameter, the schema sufficiently documents the input. The description implies the 'specific agent' requirement but does not add semantic details beyond the schema's 'The agent ID' description, meeting the baseline expectation.

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 identifies the verb (Get), resource (performance statistics), and provides concrete examples of returned metrics (connections, emails sent, open rates). However, it does not explicitly differentiate from siblings like get_activity or get_dashboard.

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 like get_activity or list_agents. There are no exclusion criteria or prerequisites mentioned.

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/diegotorreslopez81/swarmix-mcp'

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