Skip to main content
Glama
cseguinlz

DoubleTick MCP Server

check_tracking_status

Monitor email engagement by checking if tracked emails have been opened, providing open counts, device details, and timestamps for analysis.

Instructions

Check if a tracked email has been opened. Returns open count, device info, and timestamps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trackingIdYesTracking ID returned from send_tracked_email

Implementation Reference

  • Actual implementation of the tracking status check logic.
    export async function checkStatus(trackingId) {
      const apiKey = getApiKey();
      const email = getUserEmail();
    
      const res = await fetch(`${API_BASE}/status?id=${encodeURIComponent(trackingId)}&email=${encodeURIComponent(email)}`, {
        headers: { 'X-API-Key': apiKey },
      });
    
      if (!res.ok) {
        const body = await res.text();
        if (res.status === 404) {
          throw new Error(`Tracking ID not found: ${trackingId}`);
        }
        throw new Error(`Failed to check status (${res.status}): ${body}`);
      }
    
      return res.json();
    }
  • mcp-server.js:63-91 (registration)
    Tool registration and handler wrapper for check_tracking_status.
    server.tool(
      'check_tracking_status',
      'Check if a tracked email has been opened. Returns open count, device info, and timestamps.',
      {
        trackingId: z.string().describe('Tracking ID returned from send_tracked_email'),
      },
      async ({ trackingId }) => {
        if (!isAuthenticated()) {
          return { content: [{ type: 'text', text: 'Not authenticated. Run `doubletick login` in the terminal first.' }] };
        }
    
        const data = await checkStatus(trackingId);
    
        let text = `Tracking: ${data.trackingId}\n`;
        text += `Subject: ${data.emailSubject || '(no subject)'}\n`;
        text += `To: ${data.recipientEmail || '(unknown)'}\n`;
        text += `Status: ${data.statusMessage}\n`;
        text += `Open count: ${data.openCount}\n`;
    
        if (data.opens?.length > 0) {
          text += '\nOpens:\n';
          for (const open of data.opens) {
            text += `  - ${open.formattedTimestamp || open.timeAgo} · ${open.device || 'Unknown'}\n`;
          }
        }
    
        return { content: [{ type: 'text', text }] };
      }
    );
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. It discloses the return data (open count, device info, timestamps) which is valuable behavioral information, but doesn't mention potential limitations like rate limits, authentication requirements, or error conditions. It adds some context but leaves 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?

Two sentences with zero waste - first states the purpose, second describes the return values. Perfectly front-loaded and appropriately sized for this simple tool.

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?

For a single-parameter query tool with no output schema, the description provides good coverage of purpose and return values. However, without annotations or output schema, it could benefit from more behavioral context about limitations or error handling. It's mostly complete but has minor gaps.

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 100%, so the schema already fully documents the single parameter. The description adds no additional parameter information beyond what's in the schema. Baseline 3 is appropriate when the schema does all the parameter documentation work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('check if a tracked email has been opened'), identifies the resource ('tracked email'), and distinguishes from siblings by focusing on status checking rather than listing or sending emails. It provides a complete verb+resource+outcome statement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by mentioning 'tracking ID returned from send_tracked_email' (referencing a sibling tool), but doesn't explicitly state when to use this tool versus alternatives like list_tracked_emails. It provides clear context but lacks explicit when/when-not guidance.

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/cseguinlz/double-tick-mcp-server'

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