MCP Tool Reference
Every native MCP tool with its parameters, an example invocation and the shape of its output
MCP Tool Reference
Overview
The MCintelligentplus MCP server exposes 18 native tools to any Model Context Protocol client: a workspace selector, six public-source scrapers with run history, and full knowledge-base read and write access. This page is the tool reference. For installing the server in Claude Code, Codex, OpenCode, Cursor, Claude Desktop, VS Code, Windsurf or Gemini CLI, use MCP Server instead.
Prerequisites
- A connected MCP client and a personal API key (
ss_pat_…) with access to the workspaces you want to use. See MCP Server for the connection steps. - The backend is reachable from the client, and the key has not expired.
- Tools act as the key's owner. Anything you can read or change in the web app, the tools can do with the same permissions.
Step-by-step
Most tools accept the same two conventions; each tool's table lists the parameters it actually takes.
| Convention | Behaviour |
|---|---|
workspace | Optional workspace name or numeric ID, matched case-insensitively (a unique partial name also works). Omit it to use the active workspace selected with surfwise_select_workspace. |
response_format | markdown (default) or json. Use json when your client parses results programmatically. |
Results are pre-rendered strings. Payloads are clipped at 20,000 characters in total and 1,500 characters per field, with a marker such as … [N more characters truncated]. For scraper results, fetch the stored run with surfwise_get_scraper_run to get the full JSON.
Verify the deployment serves all 18 tools:
cd surfwise_mcp
uv run python -m mcp_server.selfcheckWorkspace tools
surfwise_list_workspaces
Lists workspaces the API key can reach, with an active marker.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
response_format | string | no | markdown | markdown or json |
Example: List my workspaces.
Returns: name, ID, description, owner or member role, member count, and which one is active.
surfwise_select_workspace
Sets the active workspace for later calls that omit workspace.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
workspace | string | yes | — | Name or numeric ID, case-insensitive; a unique partial name is accepted |
Example: Switch to the Research workspace.
Returns: Active workspace is now <name>.
Scraper tools
surfwise_web_crawl
Crawls pages and returns them as Markdown.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
start_urls | list of strings | yes | — | Seeds for the crawl |
max_crawl_depth | integer | no | 0 | Link depth from each seed |
max_crawl_pages | integer | no | 10 | Total page budget |
max_length | integer | no | 50000 | Character budget per page |
include_url_patterns | list of strings | no | — | Only follow matching URLs |
exclude_url_patterns | list of strings | no | — | Skip matching URLs |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Example:
{"start_urls": ["https://example.com/report"], "max_crawl_depth": 1, "max_crawl_pages": 5}Returns: per page, the URL, title and Markdown text.
surfwise_google_search
Runs one or more Google searches.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
queries | list of strings | yes | — | One or more queries |
max_pages_per_query | integer | no | 1 | Result pages to read |
country_code | string | no | — | Result region |
language_code | string | no | "" | Result language |
site | string | no | — | Restrict to a site, e.g. news.ycombinator.com |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Example: google_search(queries=['transport policy Indonesia'], site='jakartapost.com').
Returns: per query, organic results with title, URL and snippet.
surfwise_reddit_scrape
Collects Reddit posts and comment threads.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
urls | list of strings | no | — | Specific post URLs |
search_queries | list of strings | no | — | Search instead of URLs |
community | string | no | — | Subreddit name without r/ |
sort | string | no | new | relevance, hot, top, new, rising, comments |
time_filter | string | no | — | hour, day, week, month, year, all; only with sort='top' |
max_items | integer | no | 10 | Posts to return |
skip_comments | boolean | no | false | Omit comment threads |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Example: reddit_scrape(search_queries=['notebooklm alternatives'], sort='top', time_filter='month', max_items=20).
Returns: posts with title, text, score, subreddit and URL, plus comment threads unless skipped.
surfwise_youtube_scrape
Collects video metadata and optionally subtitles.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
urls | list of strings | no | — | Video URLs |
search_queries | list of strings | no | — | Search instead of URLs |
max_results | integer | no | 10 | Videos to return |
download_subtitles | boolean | no | false | Include transcript text |
subtitles_language | string | no | en | Subtitle language |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Returns: video metadata, plus transcripts when requested.
surfwise_youtube_comments
Collects comments for specific videos.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
urls | list of strings | yes | — | Video URLs |
max_comments | integer | no | 20 | Comments per video |
sort_by | string | no | — | TOP_COMMENTS or NEWEST_FIRST |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Returns: comment text, author, likes and replies.
surfwise_google_maps_scrape
Finds places and their details.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
search_queries | list of strings | no | — | Text search, e.g. coffee Jakarta |
urls | list of strings | no | — | Place URLs |
place_ids | list of strings | no | — | Google place IDs |
location | string | no | — | Location bias |
max_places | integer | no | 10 | Places to return |
include_details | boolean | no | false | Include extended details |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Returns: name, address, rating, category, coordinates and place ID.
surfwise_google_maps_reviews
Collects reviews for places.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
urls | list of strings | no | — | Place URLs |
place_ids | list of strings | no | — | Google place IDs |
max_reviews | integer | no | 20 | Reviews to return |
sort_by | string | no | — | newest, mostRelevant, highestRanking, lowestRanking |
language | string | no | en | Review language |
start_date | string | no | — | Earliest review date |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Returns: review text, rating, author and date.
surfwise_list_scraper_runs
Lists recent scraper runs.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
limit | integer | no | 20 | Runs to return |
capability | string | no | — | Filter, e.g. web.crawl |
status | string | no | — | success or error |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Returns: run ID, capability, status, item count and creation time.
surfwise_get_scraper_run
Returns one run's full, untruncated JSON.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
run_id | string | yes | — | ID from the run list |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Returns: the complete run payload, including results clipped from the chat display.
Knowledge-base read tools
surfwise_search_knowledge_base
Semantic and keyword search over workspace documents.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
query | string | yes | — | At least one character |
top_k | integer | no | 5 | 1 to 20 hits |
document_types | list of strings | no | — | e.g. FILE, CRAWLED_URL, YOUTUBE_VIDEO |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Returns: hits with title, document ID, relevance score and matched chunks.
surfwise_list_documents
Pages through documents in a workspace.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
document_types | list of strings | no | — | Filter by type |
folder_id | integer | no | — | Restrict to a folder |
page | integer | no | 0 | Zero-based page |
page_size | integer | no | 20 | Page size |
response_format | string | no | markdown | markdown or json |
workspace | string | no | active | Workspace selector |
Returns: title, ID, type, update time and has_more.
surfwise_get_document
Reads one document's stored content.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
document_id | integer | yes | — | From surfwise_list_documents |
response_format | string | no | markdown | markdown or json |
Returns: full content (Markdown) and metadata.
Knowledge-base write tools
surfwise_add_document
Adds a text document and queues it for indexing.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
title | string | yes | — | Document title |
content | string | yes | — | Markdown or plain text |
source_url | string | no | — | Original source link |
workspace | string | no | active | Workspace selector |
Returns: Queued … for indexing. Indexing is asynchronous.
surfwise_upload_file
Uploads a local file into the knowledge base.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
file_path | string | yes | — | Absolute path on the MCP client machine |
use_vision_llm | boolean | no | false | Use a vision model for images |
workspace | string | no | active | Workspace selector |
Returns: an uploaded or duplicate-skipped message.
surfwise_update_document
Replaces a document's text content.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
document_id | integer | yes | — | Document to update |
content | string | yes | — | New full content |
Returns: Updated document …. Chunks are not re-indexed by this call; re-index in the web app if retrieval must change.
surfwise_delete_document
Deletes a document and its chunks.
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
document_id | integer | yes | — | Document to delete |
Returns: Deleted document …. Deletion is permanent.
Example
End-to-end from an MCP client:
surfwise_select_workspace(workspace="KAI Policies")surfwise_search_knowledge_base(query="hotel limit domestic travel", top_k=5)surfwise_get_document(document_id=<id from the hit>)surfwise_add_document(title="Travel FAQ", content="- Hotel cap: …", source_url="https://…")
Expected result
surfwise_list_workspacesshows the expected active workspace.- Searches return document IDs that resolve with
surfwise_get_document. - Scraper calls create run records visible with
surfwise_list_scraper_runs. - Writes appear in the web app's knowledge base with a processing status.
Limits and troubleshooting
- Truncation applies to every tool's rendered output; use
response_format='json'andsurfwise_get_scraper_runwhen you need complete data. 401or403responses mean a missing, invalid or expired key, or a key without access to the selected workspace. Recreate the key in User Settings → Apps & API Access.- Writes are asynchronous for
add_documentandupload_file; polling immediately may still showpending. - The active workspace is per session. Call
surfwise_select_workspaceagain if your client restarts. surfwise_update_documentchanges content but not embeddings; use Re-index in the knowledge base to refresh retrieval.