Skip to main content
Glama

flatin.pt — Portuguese homes: taxes, construction, new-builds

Housing pipeline of one municipality: cases to completions

municipality_housing_pipeline
Read-onlyIdempotent

Use this when one municipality's housing pipeline from licence to completion is needed: cases, INE licences and completions, units for sale. Do not use it for monthly building activity (construction_barometer). Periods differ by stage; unknown is null, not 0.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "municipality": "<municipality>"
    },
    "name": "municipality_housing_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoLanguage of the page links and labels; the text summary and field names stay English. uk is accepted as ua.en
municipalityYesMunicipality name in any case, accents optional (Porto, Lisboa, Vila Nova de Gaia, Matosinhos; Lisbon and Oporto are accepted) or its four-digit code (1312). Close spellings are found; two matches return an `ambiguous` error with candidates

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "description": "One municipality: every stage with its own period and source.",
      -    "properties": {
      -      "attribution": {
      -        "type": "object"
      -      },
      -      "caveat": {
      -        "type": "string"
      -      },
      -      "coverage": {
      -        "type": "object"
      -      },
      -      "language": {
      -        "type": "string"
      -      },
      -      "method_url": {
      -        "description": "Absolute URL or null",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "municipality": {
      -        "type": "object"
      -      },
      -      "municipality_url": {
      -        "description": "Absolute URL or null",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "ratio_completed_licensed": {
      -        "type": "object"
      -      },
      -      "stages": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "url": {
      -        "description": "Absolute URL or null",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "language",
      -      "municipality",
      -      "coverage",
      -      "stages",
      -      "ratio_completed_licensed",
      -      "caveat",
      -      "url",
      -      "method_url",
      -      "municipality_url",
      -      "attribution"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "candidates": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "suggestions": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "error",
      -      "message"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "One municipality: every stage with its own period and source.",
      +    "properties": {
      +      "attribution": {
      +        "type": "object"
      +      },
      +      "caveat": {
      +        "type": "string"
      +      },
      +      "coverage": {
      +        "type": "object"
      +      },
      +      "durations": {
      +        "description": "Age of licensing cases in progress (an age, not a processing time).",
      +        "type": "object"
      +      },
      +      "language": {
      +        "type": "string"
      +      },
      +      "method_url": {
      +        "description": "Absolute URL or null",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "municipality": {
      +        "type": "object"
      +      },
      +      "municipality_url": {
      +        "description": "Absolute URL or null",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "ratio_completed_licensed": {
      +        "type": "object"
      +      },
      +      "stages": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "url": {
      +        "description": "Absolute URL or null",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "language",
      +      "municipality",
      +      "coverage",
      +      "stages",
      +      "ratio_completed_licensed",
      +      "durations",
      +      "caveat",
      +      "url",
      +      "method_url",
      +      "municipality_url",
      +      "attribution"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "candidates": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "suggestions": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "error",
      +      "message"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare read-only, idempotent, closed-world, and non-destructive behavior. The description adds important data semantics beyond annotations: periods differ by stage, and unknown values are null rather than zero. This is valuable context, though it does not cover every possible behavioral nuance.

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 short, front-loaded with the primary use case, and every sentence serves a purpose: usage guidance, exclusion, and an important data caveat.

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?

With rich annotations, 100% schema coverage, an output schema, and only two parameters, the description provides enough context for correct invocation. It covers purpose, sibling exclusion, and key data behavior without needing to explain return values.

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 parameters are already well documented in the schema. The description does not add parameter-specific meaning beyond what the schema provides, which is acceptable given the high coverage.

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 states a specific resource and scope: one municipality's housing pipeline from licence to completion, including cases, INE licences, completions, and units for sale. It also explicitly distinguishes this from `construction_barometer`, making the tool's purpose clear against a sibling.

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?

It gives explicit when-to-use guidance and a clear when-not-to-use case, naming the alternative tool (`construction_barometer`) for monthly building activity. This is exactly the kind of routing information an agent needs.

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.

Resources