Skip to content

MCP Client not called in case of (additional) Text-Output of LLM #26094

@ulftheo

Description

@ulftheo

Describe the problem/error/question

In case the LLM is creating multiple outputs, the MCP Client / Tools is not invoked anymore. In more detail:
Output only consists of MCP Client Call? -> OK
Output consists of Text + MCP Client Call -> Not OK

What is the error message (if any)?

There's no error message, just the LLM enters a loop without MCP Function Call

Please share your workflow/screenshots/recording

Image

Share the output returned by the last node

Not necessary

Debug info

Working Function call:

      "content": {
        "parts": [
          {
            "functionCall": {
              "name": "getAccessibleAtlassianResources",
              "args": {}
            },
            "thoughtSignature": "AAA"
          }
        ],
        "role": "model"
      },
      "finishReason": "STOP",
      "finishMessage": "Model generated function call(s)."
    }

MCP Function does not get invoked:

      "content": {
        "parts": [
          {
            "text": "Calling MCP_Client with input: {\"tool\":\"getJiraIssue\",\"cloudId\":\"XXX\",\"issueIdOrKey\":\"YYY-1234\"}"
          },
          {
            "functionCall": {
              "name": "MCP_Client",
              "args": {
                "tool": "getJiraIssue",
                "cloudId": "XXX",
                "issueIdOrKey": "YYY-1234"
              }
            },
            "thoughtSignature": "ZZZ"
          }
        ],
        "role": "model"
      },
      "finishReason": "STOP",
      "finishMessage": "Model generated function call(s)."
    }

core

  • n8nVersion: 2.9.1
  • platform: docker (self-hosted)
  • nodeJsVersion: 24.13.1
  • nodeEnv: production
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: enterprise (production)

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/537.36 (khtml, like gecko) chrome/145.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2026-02-22T16:24:18.780Z}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions