denue_count
Pack: denue · Endpoint: https://gateway.pipeworx.io/denue/mcp
Count establishments by economic activity + geography + size stratum. Returns totals — no detail records. Use for market-sizing questions like “how many pharmacies are in Jalisco”.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
activity_code | string | yes | SCIAN economic activity code(s), comma-separated. 2-6 digits (sector → branch → class). Use “0” for any activity. Examples: “46” (retail), “722” (food services), “464111” (pharmacies). |
area_code | string | yes | Geography code(s), comma-separated. “00” = all Mexico; 2 digits = state; 5 digits = municipality (state+mun). Examples: “09” (CDMX), “14039” (Guadalajara). |
stratum | string | no | Employee-size stratum: 0=any, 1=0-5, 2=6-10, 3=11-30, 4=31-50, 5=51-100, 6=101-250, 7=251+. Default “0”. |
Example call
Arguments
{
"activity_code": "464111",
"area_code": "14"
}
curl
curl -X POST https://gateway.pipeworx.io/denue/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"denue_count","arguments":{"activity_code":"464111","area_code":"14"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('denue_count', {
"activity_code": "464111",
"area_code": "14"
});
More examples
{
"activity_code": "722",
"area_code": "14039",
"stratum": "1"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"denue": {
"url": "https://gateway.pipeworx.io/denue/mcp"
}
}
}
See Getting Started for client-specific install steps.