Skip to main content
Glama
CadastreTool.ts911 B
import { logger, MCPTool } from "mcp-framework"; import { z } from "zod"; import { getParcellaireExpress, PARCELLAIRE_EXPRESS_TYPES, PARCELLAIRE_EXPRESS_SOURCE } from "../gpf/parcellaire-express.js"; interface CadastreInput { lon: number; lat: number; } class CadastreTool extends MCPTool<CadastreInput> { name = "cadastre"; description = `Renvoie les informations cadastrales (${PARCELLAIRE_EXPRESS_TYPES.join(', ')}) pour une position donnée par sa longitude et sa latitude (source :${PARCELLAIRE_EXPRESS_SOURCE}).`; schema = { lon: { type: z.number(), description: "La longitude du point", }, lat: { type: z.number(), description: "La latitude du point", }, }; async execute(input: CadastreInput) { logger.info(`cadastre(${input.lon},${input.lat})...`); return getParcellaireExpress(input.lon, input.lat); } } export default CadastreTool;

Implementation Reference

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/ignfab/geocontext'

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