Connect to the MCP server
The MCP endpoint is available at:GET and POST requests using StreamableHTTPServerTransport. Pass your API key in the x-zam-api-key header for authenticated operations.
Tools
The MCP server exposes five tools:zam_search
Search the public marketplace. No authentication required.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | No | Search term (matches title and description) |
category | string | No | Filter by category |
tag | string | No | Filter by tag |
includeRunContract | boolean | No | Include run contract details in results |
zam_activate
Activate a listing. Requires authentication with order:create scope.
| Parameter | Type | Required | Description |
|---|---|---|---|
listingId | string | Yes | UUID of the listing to activate |
requestBody | object | No | Input data for the listing’s run contract |
zam_get_result
Check the status of an order. Requires authentication with order:read scope.
| Parameter | Type | Required | Description |
|---|---|---|---|
orderId | string | Yes | UUID of the order |
result or errorMessage for terminal states.
zam_create
Create a new listing. Requires authentication with listing:create scope.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Listing title |
description | string | No | Listing description |
category | string | No | Category |
tags | string[] | No | Tags |
listingState | string | No | draft (default) or published |
price | object | No | {currency: "USD", amountCents: number, unit: string} |
runContract | object | No | {method, endpointPath, inputSchema, outputSchema, requestExampleJson, responseExampleJson} |
zam_create_from_service
Create a listing by crawling a service’s /contract endpoint. Requires listing:create scope.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Base URL of the service (ZAM appends /contract) |
Agent workflow
A typical agent interaction:- Search — call
zam_searchto find relevant listings. - Activate — call
zam_activatewith the chosen listing ID and any required input. - Poll — if
orderStateispendingorrunning, callzam_get_resultuntil it reachescompletedorfailed.
Error handling
When authentication fails or a required scope is missing, MCP tool responses returnisError: true with a descriptive message instead of throwing. Your agent should check for error responses and handle them gracefully.