get_post_content
Extract complete blog post content from V2.ai Insights by specifying the post index for analysis and summarization.
Instructions
Returns the full content of the blog post at the specified index
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"index": "<index>"
},
"name": "get_post_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes |
Implementation Reference
- src/v2_ai_mcp/main.py:34-40 (handler)The core logic for fetching a post's content by its index.
def _get_post_content(index: int): """Returns the full content of the blog post at the specified index""" posts = fetch_blog_posts() if 0 <= index < len(posts): return posts[index] else: return {"error": f"Invalid index. Available posts: 0 to {len(posts) - 1}"} - src/v2_ai_mcp/main.py:93-96 (registration)The MCP tool registration for 'get_post_content'.
@mcp.tool() def get_post_content(index: int): """Returns the full content of the blog post at the specified index""" return _get_post_content(index)