Skip to main content
Glama
Roland0511

MCP Feishu Project Manager

by Roland0511

get_view_detail

Retrieve work item lists from Feishu project management views by specifying a view ID, with pagination support for managing large datasets.

Instructions

根据视图id获取指定视图下的工作项列表 Args: view_id: 视图标识id page_num: 页码,默认为1 page_size: 每页数量,默认为20

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
view_idYes
page_numNo
page_sizeNo

Implementation Reference

  • MCP tool handler function for 'get_view_detail' that handles authentication and delegates to FSProjClient.get_view_detail. Includes input schema via type hints and docstring.
    @mcp.tool("get_view_detail")
    def get_view_detail(view_id: str, page_num: int = 1, page_size: int = 20):
        """根据视图id获取指定视图下的工作项列表
        Args:
            view_id: 视图标识id
            page_num: 页码,默认为1
            page_size: 每页数量,默认为20
        """
        client.get_plugin_token()
        return client.get_view_detail(view_id, page_num, page_size)
  • Core implementation of get_view_detail in FSProjClient class, performing the actual API GET request to retrieve view details with pagination.
    def get_view_detail(self, view_id: str, page_num: int = 1, page_size: int = 20) -> Dict:
        """获取视图工作项列表
        
        Args:
            view_id: 视图标识
            page_num: 页码
            page_size: 每页数量
            
        """
        
        data = {
            "page_num": page_num,
            "page_size": page_size
        }
        response = self._request(
            "GET", 
            f"/open_api/{self.project_key}/fix_view/{view_id}", 
            params=data
        )
        err_code = response.get("code", 0)
        if err_code != 0:
            raise Exception(f"获取视图工作项列表失败,错误码: {err_code}, 错误信息: {response.get('err_msg')}")
        return response.get("data", {})
  • Registration of the 'get_view_detail' tool using FastMCP decorator.
    @mcp.tool("get_view_detail")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Roland0511/mcp-feishu-proj'

If you have feedback or need assistance with the MCP directory API, please join our Discord server