create_new_survey_summary
Generate survey summaries by creating structured documents with titles and optional body content for research data organization.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| body | No |
Implementation Reference
- server.py:142-155 (handler)The handler function for the create_new_survey_summary tool. It is decorated with @mcp.tool(), which registers the tool with the MCP server. The function creates a new Notion page in the specified database with the given title and updates its body if provided.@mcp.tool() def create_new_survey_summary(title: str, body: Optional[str] = None): new_page = notion.pages.create(parent={"database_id": root_database_id}, properties={ "Title": { "title": [{ "type": "text", "text": { "content": title } }] } }) update_survey_summary_block(new_page["id"], body or "") return new_page