Skip to main content
Glama

Denue Count

denue_count
Read-onlyIdempotent

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".

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "area_code": "14",
      "activity_code": "464111"
    },
    "name": "denue_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
stratumNoEmployee-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".
area_codeYesGeography code(s), comma-separated. "00" = all Mexico; 2 digits = state; 5 digits = municipality (state+mun). Examples: "09" (CDMX), "14039" (Guadalajara).
activity_codeYesSCIAN 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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / activity_code / description
      Previous value: -"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)."New value: +"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)."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "activity_code": "464111",
      +    "area_code": "14"
      +  },
      +  {
      +    "activity_code": "722",
      +    "area_code": "14039",
      +    "stratum": "1"
      +  }
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), so the description's job is narrower. It adds the important behavioral fact that the output is aggregated totals rather than individual establishment records, which the annotations cannot convey. No mention of pagination or limits on multi-code queries, keeping it from a 5.

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?

Three short sentences, zero filler: purpose first, output shape second, example use case third. Every sentence carries distinct information.

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 3-parameter read-only aggregation tool with full schema coverage and no output schema, the description supplies enough to call it correctly and to know what comes back (totals). It could say a bit more about how multiple comma-separated codes are combined, but nothing essential is missing.

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%, and the stratum/area_code/activity_code descriptions already document code meanings, formats and examples. The tool description adds no syntax or constraint information beyond the schema, so the baseline 3 applies.

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?

States a specific verb (count) with the resource (establishments) and the three dimensions it aggregates over (activity, geography, size stratum). The clause 'Returns totals, no detail records' explicitly separates it from detail-returning siblings such as denue_establishment.

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?

Gives a concrete when-to-use condition ('market-sizing questions like "how many pharmacies are in Jalisco"') and implicitly excludes record-level lookups via 'no detail records'. It stops short of naming an explicit alternative sibling to use instead, so it lands just under the top mark.

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.