Skip to main content
Glama
digitalxenon98

DB Schenker Shipment Tracker

track_shipment

Track DB Schenker shipments by reference number to get structured details including sender/receiver information, package data, and complete tracking history.

Instructions

Track a DB Schenker shipment by reference number and return structured shipment details and tracking history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
referenceYesDB Schenker tracking reference number (e.g. 1806203236)

Implementation Reference

  • The core handler function for the 'track_shipment' MCP tool. It invokes the DbSchenkerAdapter to track the shipment by reference and formats the result as JSON text content.
    }, async ({ reference }: { reference: string }) => {
        const result = await adapter.track(reference);
        return {
            content: [
                {
                    type: "text",
                    text: JSON.stringify(result, null, 2),
                },
            ],
        };
    });
  • Zod input schema validating the 'reference' parameter for the track_shipment tool.
    const inputSchema = z.object({
        reference: z
            .string()
            .min(3)
            .describe("DB Schenker tracking reference number (e.g. 1806203236)"),
    });
  • Registration function that adds the 'track_shipment' tool to the MCP server, including metadata, schema, and handler.
    export function registerTrackShipmentTool(server: McpServer) {
        server.registerTool("track_shipment", {
            title: "Track shipment",
            description: "Track a DB Schenker shipment by reference number and return structured shipment details and tracking history.",
            inputSchema,
        }, async ({ reference }: { reference: string }) => {
            const result = await adapter.track(reference);
            return {
                content: [
                    {
                        type: "text",
                        text: JSON.stringify(result, null, 2),
                    },
                ],
            };
        });
    }
  • src/server.ts:17-17 (registration)
    Invocation of the tool registration function during server setup.
    registerTrackShipmentTool(server);
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/digitalxenon98/sendify-dbschenker-mcp'

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