Skip to content

Invalid schema for function hubspot-search-objects #2

Description

@clemenspeters

When using MCPServerStdio with @openai/agents I get

error: {
message: "Invalid schema for function 'hubspot_search_objects': In context=('properties', 'filterGroups', 'items', 'properties', 'filters', 'items', 'properties', 'values'), array schema missing items.",
type: 'invalid_request_error',
param: 'tools[2].parameters',
code: 'invalid_function_parameters'
}

Current workaround:

    toolFilter: createMCPToolStaticFilter({
        blocked: ['hubspot-search-objects'],
    }),

fixes the issue by ignoring that function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions