> For the complete documentation index, see [llms.txt](https://docs.fulfillmenttools.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fulfillmenttools.com/documentation/integrations/mcp-servers/mcp-server-fulfillmenttools-api.md).

# fulfillmenttools MCP Server

The fulfillmenttools MCP Server on `/fft` gives AI agents read access to the fulfillmenttools API. It's built on the Model Context Protocol (MCP), like the [MCP Server (onX)](https://docs.fulfillmenttools.com/documentation/integrations/mcp-servers/mcp-server-onx.md), and the two run side by side. The onX Server offers a fixed set of tools defined by the onX protocol. The `/fft` server works with the fulfillmenttools data model itself: pick jobs, pack jobs, handover jobs, shipments, parcels, carriers, facilities, routing, stock, and about 70 resources in total.

The server exposes two tools. With `fft-discover`, the agent searches the API for the operation that answers a question. With `fft-read`, it calls that operation. This release is read-only: about 200 read operations can be called, and nothing can be created, changed, or deleted.

**Example interactions**:

* Which pick jobs are still open in the Munich facility?
* Where is the parcel for order 12345?
* Which carriers are set up for the Berlin facility?
* How many pack jobs were completed today?
* Which facilities belong to the North facility group?

The fulfillmenttools MCP Server acts as a protocol adapter, passing requests and responses between the AI agent and the fulfillmenttools backend.

## Using the fulfillmenttools MCP Server with an agent

Any agent that supports MCP (for example, [Claude Desktop or Claude Code](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp)) can connect to the server.

The steps below use a Claude agent as the example. The same steps apply to other agents that support MCP integration.

{% stepper %}
{% step %}
**Agent connection**

Start by configuring your agent to recognize the fulfillmenttools MCP Server endpoint.

This typically involves adding the fulfillmenttools MCP server URL and name (for example, `ocff-myproject.mcp.api.fulfillmenttools.com/fft`, replace `myproject` with your fulfillmenttools `projectId`) to the agent's MCP or tools configuration.

Then connect to the server to complete this step.

{% hint style="info" %}
If you also use the onX server, register `/onx` and `/fft` as two separate connectors. Each route is its own server with its own tools, and each asks for its own login.
{% endhint %}
{% endstep %}

{% step %}
**Authorization**

Either configure a token for your agent, or log in on your first interaction with your fulfillmenttools credentials or your company's SSO. See the [Authentication section below](#authentication) for more information.
{% endstep %}

{% step %}
**Interaction**

Ask the agent a question about your fulfillment data. It searches for a matching API operation with `fft-discover`, calls it with `fft-read`, and answers with the result.
{% endstep %}
{% endstepper %}

## Intended usage and primary user audience

### Target audience

| Audience                         | Use case                                                                                          |
| -------------------------------- | ------------------------------------------------------------------------------------------------- |
| Operations and store managers    | Follow pick, pack, and handover jobs per facility                                                 |
| Customer service teams           | Look up the status of an order, its shipments, parcels, and item returns                          |
| Implementation and support teams | Inspect processes, routing plans, and facility setup to understand why an order went where it did |
| Developers and integrators       | Find the right API operation and its parameters by asking in plain language                       |

### Primary use cases

* **Operational status**: Open, running, and finished pick, pack, and handover jobs
* **Shipment tracking**: Shipments, parcels, carriers, and tracking information
* **Order follow-up**: An order together with its process, routing decision, and jobs
* **Stock and listings**: Stock per facility and the listings a facility offers
* **API exploration**: Which operation answers a question and which parameters it takes

### Future target audiences

The following audiences will be supported as additional tools are implemented in the future:

| Audience               | Use case                               | Planned capability |
| ---------------------- | -------------------------------------- | ------------------ |
| Operations managers    | Change job priorities or reassign work | Write operations   |
| Customer service teams | Cancel or update orders                | Write operations   |

## User interaction model

### Authentication

Every request to the server requires authentication. The agent acts on behalf of a user, not on its own, so the server enforces the [OAuth 2.1](https://oauth.net/2.1/) Authorization Code Flow with PKCE and disallows the implicit and ROPC flows.

See the [MCP servers article](https://docs.fulfillmenttools.com/documentation/integrations/mcp-servers.md#usage) for authentication options.

### Permissions

The server calls the fulfillmenttools API with the logged-in user's token, so the user's existing permissions apply to every operation.

The server also reads the user's effective permissions and compares them with the permissions each operation requires, as listed in the API reference. This check happens in two places:

* `fft-discover` marks each callable operation in its results as permitted by the user's role or not permitted, and names the missing permission.
* `fft-read` refuses an operation the user's role doesn't permit before it calls the backend, and names the missing permission.

If an operation doesn't declare a required permission, or the server can't read the user's permissions, it doesn't refuse the call. It passes the call to the backend, which decides. The backend still checks every call. If it rejects one, its `403` response reaches the agent unchanged.

`fft-discover` doesn't need any specific permission. It reads no fulfillment data, only the user's own permissions to label its results. If the permissions can't be read, the results come back without labels.

Each operation needs the permission listed for it in the API reference. Some typical ones:

<table><thead><tr><th width="256.2890625">Area</th><th>Permission</th></tr></thead><tbody><tr><td>Orders</td><td><code>ORDER_READ</code> (order search requires <code>ADMIN_MODULES_READ</code>)</td></tr><tr><td>Pick jobs</td><td><code>PICKJOB_READ</code></td></tr><tr><td>Pack jobs</td><td><code>PACKJOB_READ</code></td></tr><tr><td>Handover jobs</td><td><code>HANDOVERJOB_READ</code></td></tr><tr><td>Shipments</td><td><code>SHIPMENT_READ</code></td></tr><tr><td>Parcels</td><td><code>PARCEL_READ</code></td></tr><tr><td>Carriers</td><td><code>CARRIER_READ</code></td></tr><tr><td>Processes</td><td><code>PROCESS_READ</code></td></tr><tr><td>Stock</td><td><code>STOCK_READ</code>, <code>STOCK_AVAILABILITIES_READ</code></td></tr><tr><td>Listings</td><td><code>LISTING_READ</code></td></tr><tr><td>Item returns</td><td><code>RETURN_READ</code></td></tr></tbody></table>

For more information, see the [Users, roles, and permissions](https://docs.fulfillmenttools.com/documentation/getting-started/authentication-and-authorization/user-management#users-roles-and-permissions) article.

### Allowed and expected data

The fulfillmenttools MCP Server accepts structured data through its standardized tools.

#### **Tools**

| Tool           | Expected input                                                                                                                                                      | Returns                                                                                                                                                                                                          |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fft-discover` | A question in plain language, ideally using fulfillmenttools terms (facility, pick job, listing). Optionally include a resource name and a result limit (up to 10). | A ranked list of matching API operations with the method, path, parameters, whether the operation can be called, and whether the user's role permits it. The only backend call reads the user's own permissions. |
| `fft-read`     | The `operationId` returned by `fft-discover`, its parameters, and optionally `fields` to limit the response to the parts the agent needs                            | The response of the fulfillmenttools API.                                                                                                                                                                        |

Before calling the backend, the server checks that the:

* Operation exists, is a read, and isn't excluded
* User's role has the permissions the operation requires
* Parameters belong to the operation
* Values for parameters with a fixed set of allowed values are among them.

Filters inside a search request are passed on unchanged, and the backend validates them.

### Data flow

**Data flow steps:**

1. **User request**: The user asks the AI agent a question in natural language.
2. **Search**: The agent calls `fft-discover` with a query. The server ranks matching operations from its built-in index of the fulfillmenttools API, then reads the user's permissions to mark which operations the user's role permits. No fulfillment data is read.
3. **Call**: The agent picks an operation and calls `fft-read` with its `operationId` and parameters.
4. **Request translation**: The server checks the request and places each parameter in the URL path, query string, or request body, as the API defines it.
5. **Backend execution**: fulfillmenttools processes the request against production data using the user's permissions.
6. **Response return**: The server reduces the response to the requested `fields`, if any, and passes it to the agent.
7. **Human-readable output**: The agent presents the result to the user in natural language.

## Output characteristics and limitations

### Output description

**Response characteristics**:

* **Structured format**: Responses are in JSON in the fulfillmenttools API, in the structure of the API reference documents
* **Transparent errors**: Backend errors are returned exactly as received. If the backend rejects a request as invalid (`400`), the response also contains the operation's input schema so that the agent can correct the request.
* **Data currency**: Results reflect the state in fulfillmenttools at the time of the request
* **Notes in the response**: The server adds a short note when it shortened a long response, when a filtered list came back empty (the filter may not match the data), or when a requested field doesn't exist in the response

**Response types**:

| Tool           | Success response                                         | Error response                                                                      |
| -------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| `fft-discover` | Ranked list of API operations                            | Message if the query is invalid                                                     |
| `fft-read`     | API response, optionally reduced to the requested fields | Status code and message from the backend, or the reason the server refused the call |

**Planned future capabilities**:

* Write operations of the fulfillmenttools API, such as updating or canceling orders and jobs.

Search results mark operations that can't be called today as `not available`. If an agent tries to call one, they get a message explaining why.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fulfillmenttools.com/documentation/integrations/mcp-servers/mcp-server-fulfillmenttools-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
