Skip to main content
Glama

get_page

Retrieve complete page details and content from Productive.io by providing a page identifier. This tool accesses specific documents with full JSON-formatted information for read-only data access.

Instructions

Get specific page/document details with full content.

Returns: Dictionary with complete page details including JSON-formatted content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesThe unique Productive page identifier

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implements the core logic of the get_page tool: fetches the page from the Productive API client, applies response filtering, logs progress, and handles specific API errors and general exceptions.
    async def get_page(ctx: Context, page_id: int) -> ToolResult:
        """Fetch a single page by ID.
    
        Developer notes:
        - Body is JSON in attributes.body (caller may parse if needed).
        - Applies utils.filter_response to sanitize (body included via type='page').
        """
        try:
            await ctx.info(f"Fetching page with ID: {page_id}")
            result = await client.get_page(page_id)
            await ctx.info("Successfully retrieved page")
            
            filtered = filter_response(result)
            
            return filtered
            
        except ProductiveAPIError as e:
            await _handle_productive_api_error(ctx, e, f"page {page_id}")
        except Exception as e:
            await ctx.error(f"Unexpected error fetching page: {str(e)}")
            raise e
  • server.py:512-523 (registration)
    MCP registration of the 'get_page' tool using @mcp.tool decorator. Includes input schema definition via Annotated type hint and comprehensive docstring describing the tool's purpose and return value.
    @mcp.tool
    async def get_page(
        ctx: Context,
        page_id: Annotated[int, Field(description="The unique Productive page identifier")],
    ) -> Dict[str, Any]:
        """Get specific page/document details with full content.
    
        Returns:
            Dictionary with complete page details including JSON-formatted content
        """
        return await tools.get_page(ctx, page_id)
  • Pydantic schema definition for the page_id input parameter using Annotated with Field for description.
        page_id: Annotated[int, Field(description="The unique Productive page identifier")],
    ) -> Dict[str, Any]:
  • Supporting API client method that issues the HTTP GET request to the Productive API endpoint /pages/{page_id} to retrieve the raw page data.
    async def get_page(self, page_id: int) -> Dict[str, Any]:
        """Get page by ID"""
        return await self._request("GET", f"/pages/{str(page_id)}")
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool returns a dictionary with complete details and JSON-formatted content, which adds some context about the output format. However, it lacks critical information such as whether this is a read-only operation, authentication requirements, error handling, or rate limits, leaving significant gaps for a tool that fetches detailed data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded, with the first sentence stating the core purpose. The second sentence adds value by specifying the return format. There's minimal waste, though it could be slightly more structured (e.g., separating purpose from returns more clearly). Overall, it's efficient and earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (fetching detailed page data), the description is partially complete. It benefits from a rich input schema (100% coverage) and an output schema (implied by 'Returns'), so it doesn't need to explain parameters or return values in detail. However, with no annotations, it should provide more behavioral context (e.g., read-only nature, error cases) to be fully adequate for safe use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with 'page_id' documented as 'The unique Productive page identifier.' The description adds no additional parameter semantics beyond what the schema provides, such as format examples or constraints. With high schema coverage, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get specific page/document details with full content.' It uses a specific verb ('Get') and identifies the resource ('page/document details with full content'). However, it doesn't explicitly differentiate from sibling tools like 'get_pages' (which likely lists pages) or 'get_attachments' (which might retrieve files), leaving some ambiguity about when to choose this over alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention siblings like 'get_pages' (for listing) or 'quick_search' (for broader queries), nor does it specify prerequisites or exclusions. Usage is implied only by the tool name and description, with no explicit context for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/druellan/Productive-GET-MCP'

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