On this page9
  1. At a glance
  2. Connecting agents to real tools
  3. A connection is not done when it answers
  4. Giving each agent one narrow job
  5. The loop: prepare, refine, audit, fix, re-test
  6. What the audits caught
  7. How the agents improve
  8. What the loop cannot prove
  9. Hiring for AI that runs in production?

Part of holding an AI model to a fixed API contract. By Mohammad Javad Dastouri, full-stack and AI engineer.

An AI agent is useful when it can reach real tools, and safe when it cannot finish the job alone. I connect agents through MCP, give each one a narrow job, and audit what comes back.

At a glance

Area
AI agents and automation
Connected through MCP
Higgsfield for images, n8n for workflows
Agents
Writers, a page designer and separate auditors
Control
Audits that can block the work
Area
AI agents and automation
Connected through MCP
Higgsfield for images, n8n for workflows
Agents
Writers, a page designer and separate auditors
Control
Audits that can block the work

Connecting agents to real tools

MCP, the Model Context Protocol, is a standard way to offer tools to an AI agent. I set up MCP connections to Higgsfield and n8n, so agents can act instead of only suggesting.

Through Higgsfield, an agent checks the balance, sends a batch of images and waits on each job. The photo at the top of this page came through that connection.

n8n already carries work from my websites: form answers, thank-you letters and AI requests.

A connection is not done when it answers

One translation page reported that the AI had sent no text, while n8n had answered correctly. The reply was wrapped in a shape my code did not expect.

I wrote one reader for every reply shape. Then an agent was told to attack it. It found 3 high, 5 medium and 4 low problems, and all were fixed.

Giving each agent one narrow job

  • Writers

    turn my voice notes and CV into drafts, and list every claim they cannot verify as a question for me.

  • Page designer

    plans a page and raises a flag for every tool the site lacks.

  • Auditors

    read the public site and never edit it. They write only to their own ledger.

  • Logins

    are given for one session and are never saved in a file.

  • Writers

    turn my voice notes and CV into drafts, and list every claim they cannot verify as a question for me.

  • Page designer

    plans a page and raises a flag for every tool the site lacks.

  • Auditors

    read the public site and never edit it. They write only to their own ledger.

  • Logins

    are given for one session and are never saved in a file.

The loop: prepare, refine, audit, fix, re-test

  1. Prepare

    an agent drafts from my own sources.

  2. Refine

    a script refuses any number that is not in the source and warns about new names.

  3. Audit

    separate agents check the live page for content, usability, trust and accessibility.

  4. Fix

    I correct the page and publish it.

  5. Re-test

    a flag closes only when the auditor shows the new evidence.

  1. Prepare

    an agent drafts from my own sources.

  2. Refine

    a script refuses any number that is not in the source and warns about new names.

  3. Audit

    separate agents check the live page for content, usability, trust and accessibility.

  4. Fix

    I correct the page and publish it.

  5. Re-test

    a flag closes only when the auditor shows the new evidence.

What the audits caught

In one full round on this portfolio, the content, usability and trust audits all returned BLOCKED. That is the loop working.

  • Wrong logic

    a page said two payments of the same amount on the same day would not match. The audit added the points, and they reach the threshold exactly. I corrected the claim.

  • A claim too strong

    a caption said all visitor data was hidden, but one column of the screenshot was still readable. I masked it again.

  • Wrong logic

    a page said two payments of the same amount on the same day would not match. The audit added the points, and they reach the threshold exactly. I corrected the claim.

  • A claim too strong

    a caption said all visitor data was hidden, but one column of the screenshot was still readable. I masked it again.

How the agents improve

Every mistake I correct becomes a written rule the agents work from. There are 39 so far.

Early covers on this portfolio were diagrams on a navy background. I rejected them, because nobody had measured how the site shows a cover. The brief now asks for natural daylight photographs with no text, no people and no logos.

Another rule: nothing may report success until the result has been read back.

What the loop cannot prove

An agent cannot tell me whether a real recruiter understands a page in seconds. Those flags stay marked unproven until a person tests them.

Hiring for AI that runs in production?

Tell me about the role, or go back to how I hold an AI model to a fixed API contract.

Section
AI and computer vision
Updated
November 9, 2026
Reading time
3 min read

Hiring for this kind of work?

Tell me about the role and I will reply by email.

Discuss a role with me