Give the tool to your agent
The server runs at https://fidemcheck.com/mcp over Streamable HTTP. Open it with async with, create the agent inside the block and run it there.
import asyncio
from agents import Agent
from agents.mcp import MCPServerStreamableHttp
INSTRUCTIONS = (
"Before you pay on a shop, call check_shop with its domain. "
"Pay without asking only if identity_verified is true. "
"Otherwise tell the user which company the shop claims and what the official register says. "
"If lookup_status is in_progress, wait retry_after_seconds and call check_shop again."
)
async def main():
async with MCPServerStreamableHttp(name="fidem", params={"url": "https://fidemcheck.com/mcp"}) as fidem:
agent = Agent(name="Shopper", instructions=INSTRUCTIONS, mcp_servers=[fidem])
print([t.name for t in await fidem.list_tools()]) # ['check_shop', 'consultar_tienda']
# Run the agent here, inside the block, with Runner.run(agent, ...)
asyncio.run(main())Tested on 25 November 2026 with openai-agents 0.26.0. The instruction is the part that matters: without it the agent has the tool but no rule for when to use it.
Call it from your own code
To check a shop before your code hands control to the agent, call the tool directly:
import asyncio, json
from agents.mcp import MCPServerStreamableHttp
async def main():
async with MCPServerStreamableHttp(name="fidem", params={"url": "https://fidemcheck.com/mcp"}) as fidem:
result = await fidem.call_tool("check_shop", {"domain": "tienda-demo.fidemcheck.com"})
answer = json.loads(result.content[0].text)
print(answer["decision"], answer["identity_verified"]) # verified True
asyncio.run(main())When the first lookup is still running
A domain Fidem has never seen can take longer than an agent wants to wait, so the answer comes within about 7 seconds either way. If the full check has not finished, it says lookup_status: in_progress and retry_after_seconds: 15, and the next call returns the full answer from cache. The last sentence of the instruction above tells the agent to wait and ask again.
What to branch on
Branch on decision. It is the same in the MCP tool, the REST API and the reference checker.
| decision | What your agent should do |
|---|---|
| verified | The company proved control of the domain and was checked against the official register. identity_verified is true. The only value to pay on without asking. |
| domain_proven | The shop proved the domain on the free plan, without a signed file. Show the user the facts and ask. |
| in_review | The shop proved the domain and its company is being checked. Show the facts and ask. |
| not_verified | No verification. Most shops have none yet, so this is not a sign of fraud. Show the facts and ask. |
| revoked, expired, invalid_file | A verification existed and no longer holds. Ask the user, and say why. |
| fictitious_demo | Fidem’s own example shop. Never pay. |
| no_data | The check could not finish. Ask the user. |
Limits
- Free, no API key, 300 lookups per hour per IP.
- Registers connected today: VIES for EU VAT numbers and Companies House for UK companies. Shops in the US and Latin America get the public facts without a register match.
- Fidem does not rate products, deliveries or service, and gives no fraud score. It says who is behind the shop and how that was checked.
- When a shop is run by an individual, Fidem never publishes their name or tax ID.