Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_doc_page

Retrieve documentation pages from Pocket Network's API documentation to access blockchain data specifications and integration guides.

Instructions

Retrieve a documentation page from api.pocket.network/docs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe path to the documentation page (e.g., "/api/overview")

Implementation Reference

  • Executes the get_doc_page tool by calling docsManager.getDocPage and formatting the response as MCP content.
    case 'get_doc_page': {
      const path = args?.path as string;
      const docPage = await docsManager.getDocPage(path);
    
      if (!docPage) {
        return {
          content: [
            {
              type: 'text',
              text: `Documentation page not found: ${path}`,
            },
          ],
          isError: true,
        };
      }
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(docPage, null, 2),
          },
        ],
      };
    }
  • Defines the input schema for the get_doc_page tool, requiring a 'path' string.
    inputSchema: {
      type: 'object',
      properties: {
        path: {
          type: 'string',
          description: 'The path to the documentation page (e.g., "/api/overview")',
        },
      },
      required: ['path'],
    },
  • Registers the get_doc_page tool in the tools array returned by registerDocsHandlers.
    {
      name: 'get_doc_page',
      description: 'Retrieve a documentation page from api.pocket.network/docs',
      inputSchema: {
        type: 'object',
        properties: {
          path: {
            type: 'string',
            description: 'The path to the documentation page (e.g., "/api/overview")',
          },
        },
        required: ['path'],
      },
    },
  • Core implementation of fetching a documentation page from the configured base URL, extracting title, and returning DocPage.
    async getDocPage(path: string): Promise<DocPage | null> {
      try {
        const url = `${this.baseUrl}${path.startsWith('/') ? path : '/' + path}`;
        const response = await fetch(url);
    
        if (!response.ok) {
          return null;
        }
    
        const content = await response.text();
    
        return {
          title: this.extractTitle(content),
          content,
          url,
          lastUpdated: response.headers.get('last-modified') || undefined
        };
      } catch (error) {
        console.error('Error fetching doc page:', error);
        return null;
      }
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the retrieval action but doesn't describe what format the documentation page returns (HTML, markdown, structured data), whether authentication is required, rate limits, error conditions, or any other behavioral characteristics beyond the basic operation.

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

Conciseness5/5

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

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized for a simple retrieval tool and front-loads the essential information.

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

Completeness2/5

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

For a tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what format the documentation page returns, whether the retrieval is cached, authentication requirements, or error handling. Given the lack of structured metadata, the description should provide more behavioral context.

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 schema description coverage is 100% with the single 'path' parameter fully documented in the schema. The description doesn't add any additional parameter semantics beyond what's already in the schema, so it meets the baseline for high schema coverage without providing extra value.

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 action ('Retrieve') and resource ('a documentation page from api.pocket.network/docs'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from the sibling tool 'search_docs', which appears to be a related documentation search function.

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 like 'search_docs' or 'get_endpoint_docs'. There's no mention of prerequisites, appropriate contexts, or exclusions for this specific retrieval operation.

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/buildwithgrove/mcp-pocket'

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