Skip to main content
Glama

UpGrowth: business data for Algeria, Tunisia and Morocco

Get a CNRC activity code

get_activity_code
Read-only

Get one activity of the Algerian CNRC nomenclature by its six-digit code, for example 101101: its status (free, regulated or blocked), its labels in French, Arabic and English, its sector and group, the URL of its page on upgrowth.dz and, in French, the official text of the code: the supervising authority, the type of authorization, what the activity covers, its accessory activities and its legal references. Use it when the user already gives a code, or after search_activity_codes. Returns an error when the code does not exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesCNRC activity code, six digits, for example 101101. Find codes with search_activity_codes.
langNoLanguage of the labels, notes and attribution text in the answer: fr (French, the default), ar (Arabic) or en (English).fr
countryNoCountry of the data, an ISO 3166-1 alpha-2 code in any letter case: DZ for Algeria, the default, TN for Tunisia or MA for Morocco. Only live countries answer: list_countries shows them and their datasets. Any other country, or a dataset the country does not have, returns country_not_available.DZ

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With readOnlyHint=true and openWorldHint=false already covering the safety profile, the description still adds meaningful behavior: it discloses the failure mode ('Returns an error when the code does not exist') and describes the language-dependent response content. That is substantive context beyond what the annotations provide.

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 and sibling routing are front-loaded, and the long enumeration of return fields is justified because no output schema exists. It is dense but every clause earns its place; only the run-on length keeps it from a 5.

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?

For a read-only lookup with no output schema, the description fully compensates by enumerating the returned fields (status, trilingual labels, sector/group, URL, official legal text) and noting the error case. An agent has everything needed to call it correctly and interpret the result.

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 each parameter (code pattern, lang enum, country default) is already documented in the schema. The description adds no syntax or format detail beyond the schema's own example, 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?

The description opens with a specific verb+resource ('Get one activity of the Algerian CNRC nomenclature by its six-digit code') and enumerates exactly what the record contains. It distinguishes itself from the sibling search_activity_codes explicitly, so an agent can route between lookup-by-code and search without opening either schema.

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 states two concrete when-to-use conditions: 'when the user already gives a code' and 'after search_activity_codes'. This is an explicit routing rule to the alternative tool, leaving no ambiguity about which to call.

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.