Interparcel MCP by usefulapi
Track parcels, price courier quotes, book orders and add shipments in Interparcel.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"interparcel": {
"url": "https://interparcel.usefulapi.io/mcp"
}
}
}リモートエンドポイント
https://interparcel.usefulapi.io/mcpstreamable-httpできること
ツール一覧
ツール(9)
🟢interparcel_track_parcel(trackingNumber)
Track a parcel by its 12-digit Interparcel tracking number. Returns the current tracking events. Interparcel API: GET /tracking/{trackingNumber}.
入力スキーマ
{
"type": "object",
"properties": {
"trackingNumber": {
"type": "string",
"pattern": "^[A-Za-z0-9]{12}$",
"description": "The 12-character Interparcel tracking number, for example GB9999999999."
}
},
"required": [
"trackingNumber"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢interparcel_get_quote(collection, delivery, filter, parcels)
READ ONLY: price the available services for one or more parcels between two addresses. Books nothing and takes no payment. Use the service names and pickup dates it returns when you create an order or shipment. Interparcel API: POST /quote.
入力スキーマ
{
"type": "object",
"properties": {
"collection": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "Town or city."
},
"state": {
"description": "State or province, where the country needs one.",
"type": "string"
},
"postcode": {
"type": "string",
"description": "Postcode."
},
"country": {
"type": "string",
"description": "Country name or ISO country code, for example GB, AU, NZ, FR."
}
},
"required": [
"city",
"postcode",
"country"
],
"additionalProperties": {},
"description": "Collection address."
},
"delivery": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "Town or city."
},
"state": {
"description": "State or province, where the country needs one.",
"type": "string"
},
"postcode": {
"type": "string",
"description": "Postcode."
},
"country": {
"type": "string",
"description": "Country name or ISO country code, for example GB, AU, NZ, FR."
}
},
"required": [
"city",
"postcode",
"country"
],
"additionalProperties": {},
"description": "Delivery address."
},
"filter": {
"description": "Optional filters on the quote results.",
"type": "object",
"properties": {
"serviceLevel": {
"type": "array",
"items": {
"type": "string",
"enum": [
"standard",
"express",
"timed",
"sameday",
"pallet"
]
}
},
"carriers": {
"description": "Carrier names, for example DX or Parcelforce.",
"type": "array",
"items": {
"type": "string"
}
},
"services": {
"description": "Service names or codes.",
"type": "array",
"items": {
"type": "string"
}
},
"pickupType": {
"type": "array",
"items": {
"type": "string",
"enum": [
"collection",
"dropoff"
]
}
}
},
"additionalProperties": {}
},
"parcels": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"weight": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Parcel weight in kg."
},
"length": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Parcel length in cm."
},
"width": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Parcel width in cm."
},
"height": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Parcel height in cm."
}
},
"required": [
"weight",
"length",
"width",
"height"
],
"additionalProperties": {}
},
"description": "One or more parcels."
}
},
"required": [
"collection",
"delivery",
"parcels"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢interparcel_get_order(orderId)
Get one booked order by its Interparcel order id: status (processing, booked or requires_staff_attention), tracking numbers, price and label status. Interparcel API: GET /orders/{orderId}.
入力スキーマ
{
"type": "object",
"properties": {
"orderId": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "string",
"pattern": "^\\d+$"
}
],
"description": "The Interparcel order id returned when the order was created."
}
},
"required": [
"orderId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢interparcel_search_shipments(query, filters, pagination, sort)
READ ONLY: search shipments in Shipping Manager by text or structured filters (status ready, incomplete or on_hold; created and pickup date ranges; reference; names; countries). Paged. Interparcel API: POST /shipments/search.
入力スキーマ
{
"type": "object",
"properties": {
"query": {
"description": "Free text: shipment id, reference, names, addresses, contents.",
"type": "string"
},
"filters": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"reference": {
"type": "string"
},
"service": {
"type": "string"
},
"status": {
"type": "array",
"items": {
"type": "string",
"enum": [
"ready",
"incomplete",
"on_hold"
]
}
},
"created": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
},
"additionalProperties": {}
},
"pickup": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
},
"additionalProperties": {}
},
"country": {
"description": "Country name or ISO code (exact match).",
"type": "string"
},
"city": {
"type": "string"
},
"postcode": {
"type": "string"
},
"company": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"source": {
"type": "string"
}
},
"additionalProperties": {}
},
"pagination": {
"type": "object",
"properties": {
"page": {
"description": "Results page, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"limit": {
"description": "Results per page, 1 to 100 (default 50).",
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"additionalProperties": {}
},
"sort": {
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"createdAt",
"id",
"reference",
"service",
"value",
"pickupDate"
]
},
"direction": {
"type": "string",
"enum": [
"asc",
"desc"
]
}
},
"additionalProperties": {}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢interparcel_get_shipment(shipmentId)
Get one shipment from Shipping Manager by its shipment id: status (ready, incomplete or on_hold), addresses, parcels, selected service, price and validation errors. Interparcel API: GET /shipments/{shipmentId}.
入力スキーマ
{
"type": "object",
"properties": {
"shipmentId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,100}$",
"description": "The shipment id, for example S260921-A8V53CNvn63F."
}
},
"required": [
"shipmentId"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢interparcel_list_saved_cards
List the saved payment cards on the account (id, brand, last four digits, expiry). Use an id as payment.cardId when you create an order. Interparcel API: GET /account/saved-cards.
入力スキーマ
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢interparcel_get_prepay_balance
Get the current PrePay balance and currency of the account. Interparcel API: GET /account/prepay/balance.
入力スキーマ
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴interparcel_create_order(idempotencyKey, orders, payment)
WRITE, COSTS MONEY: books 1 to 20 courier orders and charges the payment method (saved card or PrePay). Each order books a paid courier job. Get the service and a pickup date from interparcel_get_quote first. Use a unique idempotencyKey (8 to 100 characters): repeating the same request with the same key returns the first result and charges nothing again. Interparcel API: POST /orders (version 2).
入力スキーマ
{
"type": "object",
"properties": {
"idempotencyKey": {
"description": "Unique key for this booking, 8 to 100 characters. Strongly recommended.",
"type": "string",
"minLength": 8,
"maxLength": 100
},
"orders": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"reference": {
"description": "Your reference for the order.",
"type": "string"
},
"collection": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 30,
"description": "Contact name, 30 characters maximum."
},
"company": {
"description": "Company name, 30 characters maximum.",
"type": "string",
"maxLength": 30
},
"add1": {
"type": "string",
"maxLength": 30,
"description": "Address line 1, 30 characters maximum."
},
"add2": {
"description": "Address line 2.",
"type": "string"
},
"city": {
"type": "string",
"description": "Town or city."
},
"state": {
"description": "State or province, where the country needs one.",
"type": "string"
},
"postcode": {
"description": "Postcode, where the country uses one.",
"type": "string"
},
"country": {
"type": "string",
"description": "Country name or ISO country code."
},
"email": {
"description": "Contact email address.",
"type": "string"
},
"telephone": {
"type": "string",
"description": "Contact telephone number (required for orders)."
}
},
"required": [
"name",
"add1",
"city",
"country",
"telephone"
],
"additionalProperties": {}
},
"delivery": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 30,
"description": "Contact name, 30 characters maximum."
},
"company": {
"description": "Company name, 30 characters maximum.",
"type": "string",
"maxLength": 30
},
"add1": {
"type": "string",
"maxLength": 30,
"description": "Address line 1, 30 characters maximum."
},
"add2": {
"description": "Address line 2.",
"type": "string"
},
"city": {
"type": "string",
"description": "Town or city."
},
"state": {
"description": "State or province, where the country needs one.",
"type": "string"
},
"postcode": {
"description": "Postcode, where the country uses one.",
"type": "string"
},
"country": {
"type": "string",
"description": "Country name or ISO country code."
},
"email": {
"description": "Contact email address.",
"type": "string"
},
"telephone": {
"type": "string",
"description": "Contact telephone number (required for orders)."
}
},
"required": [
"name",
"add1",
"city",
"country",
"telephone"
],
"additionalProperties": {}
},
"parcels": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"weight": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Parcel weight in kg."
},
"length": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Parcel length in cm."
},
"width": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Parcel width in cm."
},
"height": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Parcel height in cm."
}
},
"required": [
"weight",
"length",
"width",
"height"
],
"additionalProperties": {}
}
},
"contents": {
"type": "string",
"minLength": 3,
"description": "General description of the contents, at least 3 characters."
},
"value": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Total goods value in the site currency. With customs items, equal to the sum of quantity x value."
},
"service": {
"type": "string",
"minLength": 1,
"description": "Service ID or name returned by interparcel_get_quote."
},
"pickup": {
"type": "object",
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Available pickup date, YYYY-MM-DD. Get it from interparcel_get_quote."
},
"earliest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Earliest pickup time, HH:MM."
},
"latest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Latest pickup time, HH:MM."
}
},
"required": [
"date",
"earliest",
"latest"
],
"additionalProperties": {}
},
"transitCover": {
"description": "Buy the available extra transit cover. Adds cost.",
"type": "boolean"
},
"customs": {
"description": "Required when the route needs customs information.",
"type": "object",
"properties": {
"incoterms": {
"description": "ddu, no_duties, ddp_guaranteed or ddp_not_guaranteed. Default ddu.",
"type": "string"
},
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"Sale",
"Sample",
"Repair",
"Return",
"Gift",
"Documents",
"Personal Effects"
]
},
{
"type": "integer",
"minimum": 1,
"maximum": 7
}
],
"description": "Sale (1), Sample (2), Repair (3), Return (4), Gift (5), Documents (6), Personal Effects (7)."
},
"sender": {
"type": "object",
"properties": {
"taxStatus": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 3
}
],
"description": "1 private individual, 2 company not tax registered, 3 company tax registered."
},
"taxNumber": {
"type": "string"
},
"eori": {
"type": "string"
},
"ukims": {
"type": "string"
}
},
"required": [
"taxStatus"
],
"additionalProperties": {}
},
"receiver": {
"type": "object",
"properties": {
"taxStatus": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 3
}
]
},
"taxNumber": {
"type": "string"
},
"eori": {
"type": "string"
}
},
"additionalProperties": {}
},
"items": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"parcel": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "One-based parcel number that holds this item."
},
"description": {
"type": "string",
"minLength": 5,
"maxLength": 40,
"description": "Specific item description, 5 to 40 characters."
},
"hsCode": {
"description": "Destination HS code, where the route requires it.",
"type": "string"
},
"quantity": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Whole number of units."
},
"value": {
"type": "number",
"minimum": 0.1,
"description": "Value of one unit, minimum 0.10, in the site currency."
},
"country": {
"type": "string",
"description": "Country of manufacture, name or ISO code."
},
"sku": {
"description": "Your SKU. Send as a JSON string, not a number.",
"type": "string"
},
"manufacturerReference": {
"description": "Manufacturer product ID. Send as a JSON string.",
"type": "string"
},
"barcode": {
"description": "GTIN, EAN, UPC or ISBN. Send as a JSON string, or empty when unknown.",
"type": "string"
}
},
"required": [
"parcel",
"description",
"quantity",
"value",
"country"
],
"additionalProperties": {}
},
"description": "Flat list of customs items. Each item names its parcel."
}
},
"required": [
"reason",
"sender",
"items"
],
"additionalProperties": {}
},
"notifications": {
"description": "Email and SMS tracking notification settings.",
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"required": [
"collection",
"delivery",
"parcels",
"contents",
"value",
"service",
"pickup"
],
"additionalProperties": {}
},
"description": "The orders to book, 1 to 20."
},
"payment": {
"anyOf": [
{
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "stored_card"
},
"cardId": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "string",
"minLength": 1
}
],
"description": "Saved card id from interparcel_list_saved_cards."
}
},
"required": [
"method",
"cardId"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"method": {
"type": "string",
"const": "prepay"
}
},
"required": [
"method"
],
"additionalProperties": {}
}
],
"description": "Pay by a saved card (stored_card with cardId) or from the PrePay balance (prepay)."
}
},
"required": [
"orders",
"payment"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴interparcel_add_shipment(validate, reference, collection, delivery, parcels, ...)
WRITE: imports one shipment into Shipping Manager for later booking. It does not book a courier and takes no payment. With validate true (default) the import fails on any validation error; set validate false to import an incomplete shipment for correction. Interparcel API: POST /shipments/add (version 3).
入力スキーマ
{
"type": "object",
"properties": {
"validate": {
"description": "Default true. false imports an incomplete shipment and returns its validation errors.",
"type": "boolean"
},
"reference": {
"description": "Your reference for the shipment.",
"type": "string"
},
"collection": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 30,
"description": "Contact name, 30 characters maximum."
},
"company": {
"description": "Company name, 30 characters maximum.",
"type": "string",
"maxLength": 30
},
"add1": {
"type": "string",
"maxLength": 30,
"description": "Address line 1, 30 characters maximum."
},
"add2": {
"description": "Address line 2.",
"type": "string"
},
"city": {
"type": "string",
"description": "Town or city."
},
"state": {
"description": "State or province, where the country needs one.",
"type": "string"
},
"postcode": {
"description": "Postcode, where the country uses one.",
"type": "string"
},
"country": {
"type": "string",
"description": "Country name or ISO country code."
},
"email": {
"description": "Contact email address.",
"type": "string"
},
"telephone": {
"description": "Contact telephone number.",
"type": "string"
}
},
"required": [
"name",
"add1",
"city",
"country"
],
"additionalProperties": {}
},
"delivery": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 30,
"description": "Contact name, 30 characters maximum."
},
"company": {
"description": "Company name, 30 characters maximum.",
"type": "string",
"maxLength": 30
},
"add1": {
"type": "string",
"maxLength": 30,
"description": "Address line 1, 30 characters maximum."
},
"add2": {
"description": "Address line 2.",
"type": "string"
},
"city": {
"type": "string",
"description": "Town or city."
},
"state": {
"description": "State or province, where the country needs one.",
"type": "string"
},
"postcode": {
"description": "Postcode, where the country uses one.",
"type": "string"
},
"country": {
"type": "string",
"description": "Country name or ISO country code."
},
"email": {
"description": "Contact email address.",
"type": "string"
},
"telephone": {
"description": "Contact telephone number.",
"type": "string"
}
},
"required": [
"name",
"add1",
"city",
"country"
],
"additionalProperties": {}
},
"parcels": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"weight": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Parcel weight in kg."
},
"length": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Parcel length in cm."
},
"width": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Parcel width in cm."
},
"height": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Parcel height in cm."
}
},
"required": [
"weight",
"length",
"width",
"height"
],
"additionalProperties": {}
}
},
"contents": {
"type": "string",
"minLength": 3,
"description": "General description of the contents, at least 3 characters."
},
"value": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Total goods value in the site currency."
},
"service": {
"description": "Service ID or name from interparcel_get_quote.",
"type": "string"
},
"pickup": {
"type": "object",
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Available pickup date, YYYY-MM-DD. Get it from interparcel_get_quote."
},
"earliest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Earliest pickup time, HH:MM."
},
"latest": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Latest pickup time, HH:MM."
}
},
"required": [
"date",
"earliest",
"latest"
],
"additionalProperties": {}
},
"transitCover": {
"type": "boolean"
},
"customs": {
"description": "Required when the route needs customs information.",
"type": "object",
"properties": {
"incoterms": {
"description": "ddu, no_duties, ddp_guaranteed or ddp_not_guaranteed. Default ddu.",
"type": "string"
},
"reason": {
"anyOf": [
{
"type": "string",
"enum": [
"Sale",
"Sample",
"Repair",
"Return",
"Gift",
"Documents",
"Personal Effects"
]
},
{
"type": "integer",
"minimum": 1,
"maximum": 7
}
],
"description": "Sale (1), Sample (2), Repair (3), Return (4), Gift (5), Documents (6), Personal Effects (7)."
},
"sender": {
"type": "object",
"properties": {
"taxStatus": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 3
}
],
"description": "1 private individual, 2 company not tax registered, 3 company tax registered."
},
"taxNumber": {
"type": "string"
},
"eori": {
"type": "string"
},
"ukims": {
"type": "string"
}
},
"required": [
"taxStatus"
],
"additionalProperties": {}
},
"receiver": {
"type": "object",
"properties": {
"taxStatus": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 3
}
]
},
"taxNumber": {
"type": "string"
},
"eori": {
"type": "string"
}
},
"additionalProperties": {}
},
"items": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"parcel": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "One-based parcel number that holds this item."
},
"description": {
"type": "string",
"minLength": 5,
"maxLength": 40,
"description": "Specific item description, 5 to 40 characters."
},
"hsCode": {
"description": "Destination HS code, where the route requires it.",
"type": "string"
},
"quantity": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Whole number of units."
},
"value": {
"type": "number",
"minimum": 0.1,
"description": "Value of one unit, minimum 0.10, in the site currency."
},
"country": {
"type": "string",
"description": "Country of manufacture, name or ISO code."
},
"sku": {
"description": "Your SKU. Send as a JSON string, not a number.",
"type": "string"
},
"manufacturerReference": {
"description": "Manufacturer product ID. Send as a JSON string.",
"type": "string"
},
"barcode": {
"description": "GTIN, EAN, UPC or ISBN. Send as a JSON string, or empty when unknown.",
"type": "string"
}
},
"required": [
"parcel",
"description",
"quantity",
"value",
"country"
],
"additionalProperties": {}
},
"description": "Flat list of customs items. Each item names its parcel."
}
},
"required": [
"reason",
"sender",
"items"
],
"additionalProperties": {}
}
},
"required": [
"collection",
"delivery",
"parcels",
"contents",
"value",
"pickup"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}コミュニティ
エビデンス