Skip to content

Encountering MCP error -32602 when using local hosted MCP server #50

@dsilva-vd

Description

@dsilva-vd

I'm running a local hosted Monday.com MCP server with dynamic APIs enabled. Windows 10 machine and Chrome based browser.

My Gen AI is trying to build a GraphQL query to pull 5 items from a board id using the person id. The person ID and board ID are verified and correct however I've created dummy values in the XML example

XML<function_calls> <invoke name="monday-api-mcp.all_monday_api" call_id="1"> <parameter name="query">query GetBoardItemsByPersonId($boardId: ID!) { boards(ids: [$boardId]) { items_page(query_params: { rules: [ { column_id: "person", compare_value: ["person-12345678"], operator: any_of } ] }) { items { id name } } } }</parameter> <parameter name="variables">{"boardId": 098877665544}</parameter> </invoke> </function_calls>

I get the generic MCP error and I've been struggling on how to instruct the Gen AI to format the request.

MCP error -32602: MCP error -32602: MCP error -32602: Invalid arguments for tool all_monday_api: [ { "code": "invalid_type", "expected": "string", "received": "object", "path": [ "variables" ], "message": "Expected string, received object" } ]

I'm looking for help in how to instruct the GEN AI to form the GraphQL. I would like to understand how to format the XML so that the variables string is correctly processed by the XML parser and then passed onto the all_monday_api.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions