Connecting
I get an error about oneOf, allOf, or anyOf when connecting Claude. What does it mean?
The full message reads Anthropic's API input_schema does not support oneOf, allOf, or anyOf at the top level. It comes from Anthropic's tool API, not from MoltSets directly. It means a tool being loaded has a schema that uses oneOf, allOf, or anyOf at the very top level, and Anthropic requires the top level of a tool schema to be a plain object.
In MoltSets this involves the name-based search tools: search_linkedin_profile, search_business_email_by_name, and search_business_profile_by_name. Each one uses that construct to express its input rule, which is to supply either a full name or a first and last name, and either a company or a company domain.
If you build your own tools array for the Anthropic API
Flatten the schema for the affected tools. Remove the top-level construct, keep every field as an optional property, and move the input rule into the field descriptions. MoltSets enforces the same rule server-side, so the tool behaves identically.
Before, which Anthropic rejects:
{
"type": "object",
"allOf": [
{ "anyOf": [ { "required": ["name"] }, { "required": ["first_name", "last_name"] } ] },
{ "anyOf": [ { "required": ["company"] }, { "required": ["company_domain"] } ] }
],
"properties": {
"name": { "type": "string" },
"first_name": { "type": "string" },
"last_name": { "type": "string" },
"company": { "type": "string" },
"company_domain": { "type": "string" }
}
}After, which Anthropic accepts:
{
"type": "object",
"properties": {
"name": { "type": "string", "description": "Full name. Provide this, or first_name and last_name together." },
"first_name": { "type": "string", "description": "First name. Used with last_name when name is not given." },
"last_name": { "type": "string", "description": "Last name. Used with first_name when name is not given." },
"company": { "type": "string", "description": "Company domain such as acme.com. Provide this or company_domain." },
"company_domain": { "type": "string", "description": "Alias for company. Company domain or URL." }
}
}If you point the Anthropic API's mcp_servers feature or a managed connector at MoltSets
You do not control the fetched schema, so you cannot edit it yourself. Restrict the connection to the tools you need and leave out search_linkedin_profile, search_business_email_by_name, and search_business_profile_by_name. As an alternative, call those three through the REST API directly, where the schema does not apply.
