Skip to content

Errors with MCP schema #25

@grant-mccarriagher

Description

@grant-mccarriagher

Hey all,

I know this is still under active development, but I'm getting errors related to function schemas when attempting to use this MCP with LLM clients. Here are the ones I've run into so far:

  1. Unable to submit request because run_auto_analysis functionDeclaration parameters.analyzer_item_modes schema specified incorrect schema type field. For schema with enum values, schema type should not be OBJECT or ARRAY. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling. Changing analyzer_item_modes to use mcp.DefaultString() instead of mcp.DefaultArray() seems to fix this.
  2. list_test_items_by_filter has the parameter launch-id, which the LLM is consistently trying to call with launch_id. Changing it to launch_id fixes things.

I thought this might just be the client/LLM I'm using, but it seems consistent across different models and clients. If these seem like valid changes, please let me know and I can get a PR created, and if not, let me know if there's any further info I can provide.

Metadata

Metadata

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