Skip to main content
Glama
iaptic

Iaptic MCP Server

Official
by iaptic

event_details

Retrieve analyzed context and raw HTTP request/response data for a specific event using the event ID. Optionally include receipt validation details.

Instructions

Get detailed information about a specific event.

  • Returns both analyzed data (context, content) and raw event data (request, response, external API calls)

  • Raw data includes the HTTP request/response and any external requests made (e.g. Apple/Google/Stripe API calls)

  • Sensitive fields are removed and large payloads are trimmed

  • Optionally includes receipt validation details

  • Use an eventId from event_list results

  • Requires validator version 3.12+

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventIdYesThe event ID to get details for
receiptsNoInclude receipt validation details (default: false)

Implementation Reference

  • Handler case for 'event_details' tool: fetches event details via API, truncates raw HTTP data, and returns JSON with full analysis context.
      case 'event_details':
        console.error(`Fetching event details for:`, args.eventId);
        const details = await this.api.getEventDetails(args.eventId, { receipts: args.receipts });
        // Truncate only the raw HTTP data (request/response/externalRequests).
        // The analysis section stays full-length so users still see complete
        // product IDs, transaction IDs, and error messages — the clutter we
        // want to cut is the multi-kilobyte Base64 receipts, certificates,
        // and JWT tokens that live only under `raw`. Truthy guard also
        // covers the pre-3.12 fallback path where `raw` is absent.
        if (details.raw) {
          details.raw = truncateLongStrings(details.raw, 128);
        }
        return {
          content: [{
            type: "text",
            text: JSON.stringify(details, null, 2)
          }]
        };
    
      default:
        throw new Error(`Unknown event tool: ${name}`);
    }
  • InputSchema definition for event_details: requires eventId (string), optional receipts (boolean), and optionally appName if using master key.
    inputSchema: {
      type: "object",
      properties: {
        eventId: {
          type: "string",
          description: "The event ID to get details for"
        },
        receipts: {
          type: "boolean",
          description: "Include receipt validation details (default: false)"
        },
        ...(appNameRequired ? {
          appName: {
            type: "string",
            description: "Name of the app to fetch data from. Required when using master key."
          }
        } : {})
      },
      required: appNameRequired ? ["eventId", "appName"] : ["eventId"]
    }
  • Tool registration/definition with name 'event_details' and its description in the getTools() method within EventTools class.
          {
            name: "event_details",
            description: `Get detailed information about a specific event.
    - Returns both analyzed data (context, content) and raw event data (request, response, external API calls)
    - Raw data includes the HTTP request/response and any external requests made (e.g. Apple/Google/Stripe API calls)
    - Sensitive fields are removed and large payloads are trimmed
    - Optionally includes receipt validation details
    - Use an eventId from event_list results
    - Requires validator version 3.12+${appNameRequired ? '\n- Requires appName parameter when using master key' : ''}`,
            inputSchema: {
              type: "object",
  • API method getEventDetails: makes HTTP GET to /events/:id (v3.12+) or falls back to /events/:id/analysis, optionally including receipts.
    async getEventDetails(eventId: string, params?: { receipts?: boolean }) {
      const version = await this.getValidatorVersion();
      const [major, minor] = version.split('.').map(Number);
      if (major > 3 || (major === 3 && minor >= 12)) {
        // Use the combined /events/:id endpoint (v3.12+)
        const response = await this.client.get(`/events/${eventId}`, {
          params: params?.receipts ? { receipts: 'true' } : undefined
        });
        return response.data;
      }
      // Fallback to analysis-only endpoint for older validators
      const response = await this.client.get(`/events/${eventId}/analysis`, {
        params: params?.receipts ? { receipts: '1' } : undefined
      });
      return { analysis: response.data };
    }
  • src/server.ts:105-107 (registration)
    Server routing: tool calls prefixed with 'event_' (including event_details) are routed to EventTools.handleTool().
    if (name.startsWith('event_')) {
      return await this.tools.events.handleTool(name, args);
    }
Behavior4/5

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

Discloses removal of sensitive fields, trimming of large payloads, and inclusion of raw HTTP/external API data. Without annotations, description takes responsibility—mostly thorough but could explicitly state read-only nature.

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?

Well-structured with bullet points; each sentence provides essential information without redundancy. Efficient use of space while covering all key aspects.

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

Completeness5/5

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

Comprehensive for a tool with no output schema: describes return contents, data handling (sensitive fields, trimming), and prerequisites (validator version). No gaps in needed context.

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?

Adds value beyond schema by explaining eventId origin (event_list results) and receipts option (validation details). Schema already covers basic descriptions, so description enhances usability.

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 it retrieves detailed event info, specifies contents (analyzed and raw data), and distinguishes from event_list by focusing on a single event's details.

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?

Provides explicit instruction to use eventId from event_list results and mentions validator version requirement. Lacks explicit alternatives but context is clear for intended use.

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/iaptic/mcp-server-iaptic'

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