firecrawl / firecrawl/firecrawl-mcp-server

search prompt example for sources field causes HTTP 422

Open
#99 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.5k
Forks
884
Avg merge
1d 11h
Merged PRs (30d)
14

Description

when using a chatbot to call the search function via this MCP the request it sent was
```
{
"query": "Tesla stock price current TSLA",
"limit": 5,
"sources": [
"web"
]
}
```

and the response was
```
{
"error": "HTTP error 422: {\"detail\":[{\"type\":\"model_attributes_type\",\"loc\":[\"body\",\"sources\",0],\"msg\":\"Input should be a valid dictionary or object to extract fields from\",\"input\":\"web\"}]}"
}
```

when the model corrected to
```
{
"query": "Tesla stock price current TSLA",
"limit": 5,
"sources": [
{
"type": "web"
}
]
}
```

the response returned was correct

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the search tool's source schema and the prompt or example that documents the sources field. Reproduce the HTTP 422 with the array of strings, then verify that the documented example uses source objects and the corrected request succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.