Skip to main content
Glama

export_crm_file

Destructive

Export people (entity=contacts) or organisations (entity=accounts) as a real spreadsheet file and return { url, filename, format, count, columns, hidden_columns, truncated }. url is a signed link (7 days) to a private file. format: xlsx (default) | csv (semicolon-separated, UTF-8 with BOM so Excel opens umlauts correctly). Optional filters: ids (export exactly these rows, e.g. the current filtered list), label, filter or saved_filter_id (as in search_crm), search (name/e-mail/phone/city), owner_id, max_rows (default 5000, max 20000). Fields hidden from your role by field permissions are LEFT OUT of the file (listed in hidden_columns), and search only looks at visible fields. xlsx adds a second sheet 'Verlauf' (messages, calls, meetings, e-mails of the exported people; for organisations of their people and leads) unless include_history=false. Needs admin or the role permission contacts:export / accounts:export; every export is written to audit_log (action export) and the tool can be locked per person via permission sets.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "entity": "<entity>"
    },
    "name": "export_crm_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoExport exactly these records (max 20000).
labelNoOnly records with this label (name or id).
entityYescontacts | accounts
filterNoCombinable filter like search_crm: { all: [...], any: [...] }.
formatNoxlsx (default) | csv
searchNoFree-text search term
max_rowsNoDefault 5000, max 20000
owner_idNoID of the owner (user)
include_historyNoxlsx only: add the sheet Verlauf (default true).
saved_filter_idNoUse a saved filter (save_filter / list_saved_filters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / owner_id / description
      Added value: +"ID of the owner (user)"
    • addedInput schema / properties / search / description
      Added value: +"Free-text search term"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: signed 7-day private URL, role-based field omission surfaced via hidden_columns, search limited to visible fields, an extra 'Verlauf' sheet unless include_history=false, and the permission/audit model ('needs admin or contacts:export / accounts:export', 'every export is written to audit_log', 'can be locked per person via permission sets'). This explains both the destructive/write annotation and the access-control consequences an agent must anticipate.

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 well front-loaded: purpose and return shape come first, then format semantics, then filters and permissions. A few clauses duplicate schema defaults (max_rows, xlsx default), but nearly every sentence carries operational value and the ordering is logical.

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 10-parameter export with no output schema, the description supplies the return shape ({ url, filename, format, count, columns, hidden_columns, truncated }), URL lifetime, permission prerequisites, audit behavior, and truncation via max_rows. Nothing material an agent needs to call it correctly appears missing.

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 real meaning: csv is semicolon-separated UTF-8 with BOM, ids means 'export exactly these rows', include_history only affects xlsx and defaults true, and filter syntax mirrors search_crm. Minor redundancy (restating max_rows default/max and xlsx default) keeps it from a 5.

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 (Export) plus the exact resource and its enum values ('people (entity=contacts) or organisations (entity=accounts)') and the concrete artifact produced ('a real spreadsheet file'), which cleanly separates it from the sibling export_leads_file/export_brain paths. An agent can identify the tool and its subject 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear trigger context, notably 'ids (export exactly these rows, e.g. the current filtered list)' and 'filter or saved_filter_id (as in search_crm)', which points at search_crm/save_filter/list_saved_filters for building inputs. It stops short of explicitly naming when to use a different export sibling (e.g. export_leads_file) or stating exclusions, so it earns a 4 rather than a 5.

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.