Skip to main content
Glama

Temsor API — Turkey & EU business data

Turkish Postal Code

tr_posta_kodu

Validates a 5-digit Turkish postal code and resolves the province from the first two digits (plate map).

PTT postal codes are five digits; the leading pair matches the province plate code for the 81 provinces. This endpoint checks the shape, maps 01–81 to the province name, and returns null with confidence none when the prefix is outside that range — it does not invent a district. District-level resolution needs the full PTT directory and is out of scope here.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
postalCodeYesTurkish 5-digit postal code, with or without spaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It reveals key edge-case behavior: returns null with confidence none for out-of-range prefixes, and explicitly says it does not invent a district. It could go further by describing the success response shape or behavior for malformed lengths, but the most consequential behaviors are covered.

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

Conciseness4/5

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

The purpose is front-loaded in the first sentence, and the rest of the description earns its place by explaining validation mechanics, failure behavior, and scope limitations. It is slightly repetitive about the five-digit/plate-map rule, but overall it is tight and free of filler.

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

Completeness4/5

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

For a single-parameter tool with no output schema and no annotations, the description covers the main success behavior (province resolution), the main failure mode (null with confidence none), and the scope limitation (no district). It leaves minor ambiguity about malformed input handling and exact return fields, but the overall picture is largely complete.

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 input schema has 100% description coverage for the single parameter, so the schema already explains postalCode as a Turkish 5-digit code with optional spaces. The description adds useful domain context about the plate-map, but it does not add new parameter syntax or formatting details beyond the schema. Baseline 3 is appropriate.

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 opens with a specific verb and resource: 'Validates a 5-digit Turkish postal code and resolves the province from the first two digits (plate map).' It clearly distinguishes the tool's scope by stating it does not resolve districts, which separates it from broader address/validation siblings.

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

Usage Guidelines4/5

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

The description explains when to use it: for shape validation and province-level resolution. It explicitly excludes district-level resolution and notes that the full PTT directory is needed for that, giving the agent a clear boundary. It does not name a sibling tool, but the scope guidance is strong enough to route the agent correctly.

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