Skip to main content
Glama

Export Companies to CSV

export_companies

Bulk file export of companies matching filters (CSV / XLSX / JSON). Up to 500 rows per call. Default fields=contacts_only: name, NIP, KRS, city, email, phone, website — small enough to use in-chat. fields=summary adds location, PKD, latest revenue/profit. fields=full is the complete dump (change history, rankings, people, enrichments, CSV twins) and often exceeds MCP client limits. Consumes export quota only after the file is built successfully. For a short list of emails after search_companies, use search with fields=contacts_only instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
krsNoKRS registry number (exports that one company).
nipNoNIP tax number (exports matching companies).
pkdNoPrimary PKD code prefix, e.g. '80.10', '80.10.Z', or '80' (same prefix matching as search_companies).
cityNoCity name.
nameNoCompany name fragment (case-insensitive).
limitNoMax rows to export (default: 50, max: 500).
countyNoCounty / powiat (lowercase). Same filter as search_companies / count_companies.
fieldsNoPayload size. Default contacts_only (name, NIP, KRS, city, email, phone, website). summary adds county/region, PKD, latest revenue/profit. full is the complete profile dump — often too large for MCP clients; use only when asked for the full file.
formatNoExport format (default: csv). Column set follows `fields` (contacts_only by default).
localeNoColumn/label language (default: en).
regionNoVoivodeship (e.g. mazowieckie).
all_pkdNoMatch any PKD code in the company's activity list (not just primary).
is_activeNotrue = active companies only.
revenue_maxNoMaximum total revenue.
revenue_minNoMinimum total revenue.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Adds genuinely non-structural behavior: the 500-row cap per call, that quota is consumed only after the file is built successfully, and that `full` dumps can break MCP clients. These go beyond the annotations (readOnlyHint=false, idempotentHint=false) by explaining the cost/size semantics. It stops short of describing response shape or error behavior.

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?

Dense but front-loaded: format and row cap first, then the `fields` tiers, then the quota note, then the routing alternative. Every clause carries information, though the field-preset sentence is long enough to require a second read.

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 15-parameter, zero-required export tool with no output schema, the description covers the decisions that matter (which preset, what format, size ceiling, quota). Filter parameters are left to the fully documented schema, which is reasonable, but filter combination behavior is not addressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds useful aggregate semantics by naming the concrete column set behind each `fields` preset (e.g. `summary` adds location, PKD, latest revenue/profit) rather than just restating the enum.

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+resource ('Bulk file export of companies matching filters') plus the three output formats, and clearly distinguishes this from search_companies by pointing at the alternative for short email lists. An agent can select it without opening the 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?

Gives explicit guidance on which `fields` preset to choose, warns that `full` often exceeds MCP client limits, and names the alternative path ('for a short list of emails after search_companies, use search with fields=contacts_only instead'). When-to-use and when-not-to-use are both present.

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.