Skip to main content
Glama
reuvenaor

Israel Statistics MCP

by reuvenaor

get_catalog_chapters

Retrieve catalog chapters from Israel's Central Bureau of Statistics to access structured economic data and price indices for analysis.

Instructions

Get list of index chapters from Israel Statistics API

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoLanguage for response. Options: he=Hebrew (default) | en=English. Use 'en' for English responses.
pageNoPage number for pagination. Start with 1 for first page. Use with pagesize to navigate large result sets.
pagesizeNoNumber of results per page (maximum 1000). Controls how many items to return. Use with page for pagination.
explanationNoAdditional explanation or context for the request

Implementation Reference

  • The main handler function that executes the tool logic: extracts parameters, calls secureFetch to get catalog data from 'index/catalog/catalog' endpoint, and returns chapters list with a summary.
    export async function getCatalogChapters(
      args?: z.infer<typeof getCatalogChaptersSchema>
    ) {
      // Extract global parameters
      const globalParams: GlobalParams = {
        lang: args?.lang,
        page: args?.page,
        pagesize: args?.pagesize,
      }
    
      const data = await secureFetch(
        "index/catalog/catalog",
        { format: "json", download: "false" },
        catalogChaptersResponseSchema,
        globalParams
      )
      return {
        chapters: data.chapters,
        summary: `Found ${data.chapters.length} index chapters.`,
      }
    }
  • Zod schema defining input parameters for the getCatalogChapters tool, including optional global params (lang, page, pagesize) and explanation.
    export const getCatalogChaptersSchema = z.object({
      ...globalParamsSchema,
      explanation: z
        .string()
        .optional()
        .describe("Additional explanation or context for the request"),
    })
  • src/index.ts:107-124 (registration)
    Registers the 'get_catalog_chapters' tool with the MCP server, providing description, input schema, and a rate-limited wrapper around the handler function.
    server.registerTool(
      "get_catalog_chapters",
      {
        description: "Get list of index chapters from Israel Statistics API",
        inputSchema: getCatalogChaptersSchema.shape,
      },
      withRateLimit(async (args) => {
        const result = await getCatalogChapters(args)
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(result),
            },
          ],
        }
      })
    )
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions 'Get list' but doesn't disclose behavioral traits such as whether this is a read-only operation, potential rate limits, authentication needs, or what the response format looks like. The description is minimal and lacks essential operational context.

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 with zero waste. It's appropriately sized and front-loaded, clearly stating the tool's purpose without unnecessary elaboration.

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?

Given no annotations, no output schema, and multiple sibling tools, the description is incomplete. It doesn't explain return values, differentiate from alternatives, or provide behavioral context, making it inadequate for an agent to fully understand when and how to use this tool effectively.

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?

Schema description coverage is 100%, so the schema fully documents all 4 parameters. The description adds no additional meaning about parameters beyond what's in the schema, meeting the baseline of 3 for high schema coverage without 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 verb 'Get' and the resource 'list of index chapters from Israel Statistics API', which is specific and understandable. However, it doesn't differentiate from sibling tools like 'get_all_indices' or 'get_main_indices', leaving ambiguity about what makes this tool unique for chapters versus other index-related tools.

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. With multiple sibling tools like 'get_all_indices', 'get_main_indices', and 'get_chapter_topics', there's no indication of context, prerequisites, or exclusions to help an agent choose appropriately.

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/reuvenaor/israel-statistics-mcp'

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