MCP Tool Test error

Hi.

I am testing out the MCP function, and I have two blockers in adding a tool:

In the general tab, I can manually type the name of a script, but the pulldown does not seem to recognize scripts in the linked file.

I have verified that the Data API Key is set up with both DAPI and OData. And the user account in the FileMaker is enabled for both.

The payload is a simple test:
{
“firstName”: “sample”,
“lastName”: “sample”,
“email”: “sample”
}

The test result returns a “Failed” response…

{
“error”: {
“code”: “-1002”,
“message”: “Error: parse failure in URL at: ‘.’”
}
}

Is there a way to see what URL is being used by the test?

Hey Steve,

The test is hitting the OData proxy url directly. You can check it in the network tab in your browser. I’ll add it to the UI in our next version. Get there by right clicking > Inspect > Network.

You’re probably getting an error on the Data API call to list the scripts, that will also appear in the network tab. I’ll get that error displayed in the UI as well.

-Kyle

Hey Steve,

Just did some testing on this and I was able to get the same error if I have a period in my script name. Does your script name have a period in it? OData has periods as part of its spec and having one will cause problems. I’ll see if there is a way we can escape those, but in the meantime you will want to remove that period to fix the issue.

-Kyle

1 Like

@kduval And it (OData) wont work if your scripts have brackets in them (just for reference)

1 Like

Hi Kyle,

This issue has been resolved. The underlying problem is that our internal network rules blocked some headers being sent by the OttoFMS MCP tool wizard. We have made exceptions for this use case, and the tool definitions are working as designed.

One weird glitch though? When working top to bottom in the Add Tool wizard, If I enter a Tool Name, Description, and select a script from the pull down, the “Create Tool” is still grayed out. If I edit either of the two text boxes, it is then enabled.


Hey Steve,

Thanks for the report, I’ll take a look at this and get it fixed.

-Kyle

Hey Steve,

This issue is fixed in OttoFMS 4.14.0, let me know if you have any issue with it!

-Kyle