- Find the company and read its ID.
- Read the deals linked to that company.
- Midwest Outfitters Expansion is open.
This is a local replay of two company lookups we ran in the Open Mercato 0.10.1 demo. All names and deals are sample data.
MCP stands for Model Context Protocol. It gives an AI application a common way to discover tools on a server and ask that server to run one. If you ask which deals belong to a customer, the answer can come from your CRM records, including a deal created five minutes ago.
Who does what in an MCP request?
The host is the application where you ask the question. Its client speaks MCP to the CRM's server. The server advertises tools and their input schemas and can run a permitted tool against business data. The model helps the host choose a tool and form the request. Your application still owns the records, their meaning, and access to them. Read the protocol's architecture overview.
Try the two calls with a test company
- Connect an MCP client or Inspector to a test Open Mercato installation using the setup guide below. Use a test identity with access to read companies and deals. Inspect
tools/listto see the names and inputs exposed for that identity. - Find the company with
customers.list_companies. In our demo the arguments were{"q": "Harborview Analytics", "limit": 5}. In your installation, use a company you know. If two records match, compare their domains or other identifying details. - Copy its ID and call
customers.get_companywith{"companyId": "YOUR-COMPANY-UUID", "includeRelated": true}. Replace the placeholder with the actual UUID. Inspectrelated.dealsand keep the statuses you count as active. The related-record collection is capped at 100. For an account that reaches that limit, check a complete paginated report before stating an account-wide total.
Why make two calls? Searching deal titles for “Harborview” misses “Midwest Outfitters Expansion.” The company record preserves the link between the two names. In our demo it also had a won deal, “Blue Harbor Grocers Pilot Program.” Including it would give a misleading answer to a question about active work.
What an empty result tells you
Choose Copperleaf and then “Only the literal ‘open’ status.” The company exists. One linked deal is in progress and one is lost, so zero have the exact status you selected. Switch to “Open and in progress” and one deal qualifies. The words a sales manager uses can cover more than one stored status. A client that shows the filter makes that difference visible.
In Open Mercato, the MCP server exposes tools to external clients. The in-app agent framework can use tools to make decisions as part of a workflow. A CRM lookup needs only the read side. Connect and inspect the Open Mercato MCP server.