I have a MCP Trigger that passes over parameters from Google Gemini. The correct HTTP call out is identied - however, the tool does not receive the arugments. Any thoughts on what I am doing wrong in this configuration?
Trigger:
HTTP Get:
Hey @dagarritysps, while you wait for a response, here are some things that might help:
Automatically matched to your question.
Docs:
Forum:
@jabbson - you’ve helped with similar issues before, can you take a look?
Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.
Hey @dagarritysps
The get_environment is an internal tool n8n adds even to an agent with no user tools. Its input is an empty object schema. Agent Builder doesn’t expose a toggle or schema editor for it, and the credential test only checks /models, not function calling.
Current Agent Builder probes the Responses API first for custom OpenAI endpoints; a schema rejection doesn’t trigger the missing-route fallback to Chat Completions. NetArz advertises tool support for your model, but the actual forwarded schema needs checking. Ask NetArz to compare the received and forwarded get_environment definition, particularly whether an empty object like properties: {} becomes []. That’s a possibility, not a confirmed cause. You can leave WordPress and WooCommerce untouched. Can you share the full error response and your n8n version?
Version 2.42.6, when it does error, I sometimes get
MCP session connection lost: Server error '503 Service Unavailable' for url 'http://ai.jumpcloud.com/mcp'
Ahh Sorry, my previous reply addressed a different issue.
Your error shows http://ai.jumpcloud.com/mcp. Change the MCP client URL to https://ai.jumpcloud.com/mcp, then restart the client and reconnect/authorize the gateway tools. That’s JumpCloud’s documented US endpoint; use your organisation’s regional equivalent if applicable.
Inside JumpCloud, keep the n8n integration pointed at your published MCP Trigger’s Production URL. If the 503 persists, check Access > AI Gateway > Activity Log for the failed call’s server and response status.
I’d separate the 503 from the argument mapping. Your trigger screenshot already shows arguments arriving for that captured call.
In the HTTP Request screenshot, the second query parameter has both Name and Value set to “Defined automatically by the model.” If the endpoint expects q, keep Name fixed as q and let the model supply only Value. Leave limit = 100 fixed too.
For the search value, an explicit expression would be:
{{ $fromAI('q', 'Search term for the candidate query', 'string') }}
Here, q is the tool argument key, not a path into the trigger’s JSON. Fixing the HTTP parameter name removes an unnecessary choice from the model; it doesn’t establish that the whole mapping is correct yet.
In a test copy, publish the change and reload the client’s tool definitions. Call it with a synthetic search term and check the actual outgoing query: does it contain q with that exact value, alongside limit=100?
If the call still fails with 503 before the HTTP tool runs, follow Deepankar’s gateway check separately. That failure won’t tell you whether the query mapping works.
I think you are onto something. If I use the call, and manually use q and the parameter from the model, the call is successful in pullnig data, but both the parameter name and value are wrong. Are there ways to instruct / provide documentation on what can be used for the calls within the MCP/HTTP node to have the AI model have a better chance of sending a correctly designed query parameter?
@dagarritysps ja, und der richtige Ort dafĂĽr ist die $fromAI-Beschreibung, weil dieser Text genau das ist, was Gemini fĂĽr den Parameter sieht. Halten Sie den Namen als q fest (wenn das Modell den Namen auch ausfĂĽllt, muss es beide erraten), und fĂĽgen Sie die Anweisung plus ein echtes Beispiel in das zweite Argument des Value-Ausdrucks ein:
{{ $fromAI('q', 'Text fĂĽr die Suchabfrage. Beispiel: <ein Wert, von dem Sie wissen, dass er Ergebnisse liefert>. Keine Feldnamen, AnfĂĽhrungszeichen oder Operatoren.', 'string') }}
n8n wandelt das in die Beschreibung von q im Input-Schema des Tools um, das der MCP-Client empfängt. Schalten Sie dann die Werkzeugbeschreibung von automatisch zu manuell um und erklären Sie in ein oder zwei Sätzen, was der Endpunkt sucht und wie ein gutes q aussieht. Veröffentlichen Sie danach erneut, damit der Client die neuen Definitionen lädt.