Skip to main content
Glama
luistorres789321

ia-cae-zurekin-mcp

list_sections

Retrieve a list of navigable sections from the authenticated internal CAEZ Urekin website. Specify a root path to filter sections by directory.

Instructions

Lista secciones navegables del sitio.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
root_pathNo/

Implementation Reference

  • The async handler function that executes the 'list_sections' tool logic: fetches a page, extracts all anchor links within BASE_URL, deduplicates them, and returns up to 100 sections with title, path, and url.
      async ({ root_path }) => {
        try {
          const { html } = await fetchPage(root_path);
          const $ = cheerio.load(html);
          const sections = [];
    
          $('a[href]').each((_, el) => {
            const title = $(el).text().trim();
            const href = $(el).attr('href');
            if (!title || !href) return;
            const url = normalizeUrl(href);
            if (!url.startsWith(BASE_URL)) return;
            sections.push({
              title,
              path: new URL(url).pathname,
              url
            });
          });
    
          return {
            content: [
              {
                type: 'text',
                text: JSON.stringify({ sections: dedupeLinks(sections).slice(0, 100) }, null, 2)
              }
            ]
          };
        } catch (error) {
          return mcpError(error);
        }
      }
    );
  • Input schema for 'list_sections': accepts an optional 'root_path' string parameter defaulting to '/'.
    {
      root_path: z.string().default('/')
  • src/index.js:332-369 (registration)
    Registration of the 'list_sections' tool via server.tool() on the McpServer instance with name 'list_sections' and description 'Lista secciones navegables del sitio.'.
    server.tool(
      'list_sections',
      'Lista secciones navegables del sitio.',
      {
        root_path: z.string().default('/')
      },
      async ({ root_path }) => {
        try {
          const { html } = await fetchPage(root_path);
          const $ = cheerio.load(html);
          const sections = [];
    
          $('a[href]').each((_, el) => {
            const title = $(el).text().trim();
            const href = $(el).attr('href');
            if (!title || !href) return;
            const url = normalizeUrl(href);
            if (!url.startsWith(BASE_URL)) return;
            sections.push({
              title,
              path: new URL(url).pathname,
              url
            });
          });
    
          return {
            content: [
              {
                type: 'text',
                text: JSON.stringify({ sections: dedupeLinks(sections).slice(0, 100) }, null, 2)
              }
            ]
          };
        } catch (error) {
          return mcpError(error);
        }
      }
    );
  • Helper function normalizeUrl() used by the handler to resolve relative URLs against BASE_URL.
    function normalizeUrl(input) {
      try {
        return new URL(input, BASE_URL).toString();
      } catch {
        throw new Error('INVALID_URL');
      }
    }
  • Helper function dedupeLinks() used by the handler to remove duplicate URLs from the sections list.
    function dedupeLinks(links) {
      const seen = new Set();
      return links.filter((link) => {
        if (seen.has(link.url)) return false;
        seen.add(link.url);
        return true;
      });
    }
Behavior1/5

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

No annotations are present, and the description does not disclose any behavioral traits such as authentication requirements, rate limits, or side effects. It only states the basic function.

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

Conciseness3/5

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

The description is a single short sentence, which is concise but may be too minimal. It front-loads the purpose but lacks supporting details.

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

Completeness1/5

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

Given the single parameter, no output schema, and no annotations, the description fails to provide sufficient context. It does not explain what 'navigable sections' are, how root_path affects results, or the output format.

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

Parameters1/5

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

The description does not explain the 'root_path' parameter or its effect. With 0% schema description coverage, the parameter semantics are left entirely to the agent to infer.

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

Purpose5/5

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

The description clearly states the tool lists navigable sections of the site, using a specific verb and resource. It distinguishes from sibling tools like extract_page_content, get_page, and search_pages.

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?

No guidance is provided on when to use this tool versus alternatives. There is no mention of context, prerequisites, or exclusions.

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/luistorres789321/ia-cae-zurekin-mcp'

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