Skip to main content
Glama

Portuguese Official Statistics Indicator Metadata

ine-portugal.stats.indicator_metadata
Read-onlyIdempotent

Get metadata for a Statistics Portugal (INE) indicator by its 7-digit varcd code: full name, periodicity, unit, decimal precision, first/last available period, and every dimension with its valid filter codes. Call this BEFORE ine-portugal.indicator_data to discover which Dim1..Dim6 codes are valid for the indicator. Data: www.ine.pt (Statistics Portugal open JSON indicator API), no auth required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoResponse language for labels: "EN" (English, default) or "PT" (Portuguese).
varcdYesINE (Statistics Portugal) 7-digit indicator code, zero-padded (e.g. "0008273"). Returns the indicator name, periodicity, unit, first/last available period, and every dimension with its valid filter codes — call this BEFORE ine-portugal.indicator_data to discover valid Dim1..Dim6 values.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the bar is lower. The description adds genuinely useful behavioral context by stating the data source (www.ine.pt open JSON API) and explicitly noting that no authentication is required, which is not captured in the annotations.

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 compact and well-structured: a clear statement of what the tool returns, a directive on when to call it, and a concise data-source/auth note. Every sentence earns its place and there is no redundant filler.

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

Completeness5/5

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

The description covers what the tool returns, the prerequisite relationship to indicator_data, the data source, and the auth requirement. With only two parameters, an output schema, and safety annotations present, nothing essential is missing for an agent to call this tool correctly.

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 already documents both parameters and their constraints. The varcd parameter description adds some value with the zero-padded example ('0008273') and clarifies it is an INE code, but it largely repeats the tool-level description and does not materially go beyond the schema.

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?

Description opens with a specific verb and resource ('Get metadata for a Statistics Portugal (INE) indicator by its 7-digit varcd code') and lists the exact fields returned. It explicitly distinguishes itself from the sibling ine-portugal.indicator_data by noting it is the prerequisite step for discovering valid Dim1..Dim6 codes.

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

Usage Guidelines5/5

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

The description gives direct usage guidance: 'Call this BEFORE ine-portugal.indicator_data to discover which Dim1..Dim6 codes are valid for the indicator.' This tells the agent when to use this tool and identifies the relevant alternative, leaving no ambiguity about sequencing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.