Skip to main content
Glama

Export site data

export_site_data
Read-onlyIdempotent

Export the records in a collection, up to 5000 (the store holds far more; a bigger collection comes back cut off, and the result says so with truncated: true). It is also the only call that reports a total: count is how many came back, so while truncated is false it is the whole collection. query_site_records reads at most 200 records and cannot page past them, so it can never total a collection. Use for backup or analysis. Scoped to a site you can edit.

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": {
      "site_id": "<site_id>",
      "collection": "<collection>"
    },
    "name": "export_site_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site that owns the collection
collectionYesThe collection to export
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (which already declare read-only, idempotent, non-destructive), the description discloses the 5000-record cap, that oversized results come back cut off and are flagged with `truncated: true`, and that `count` reports returned records so is only a true collection total when truncated is false. It also states the permission precondition ('Scoped to a site you can edit').

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 cap and truncation behavior are front-loaded and every sentence carries information. The middle sentence about `count` and `truncated` is logically dense and takes a re-read, and the nested parenthetical about store size could be flattened, but there is no filler.

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?

There is no output schema, so the description carries the burden of explaining results; it covers the two most decision-relevant fields (`truncated`, `count`) but not the overall return shape (e.g., that records come back as a collection/array). For a simple read-only export that gap is minor, but it is the one thing an agent must discover by calling.

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%, so site_id, collection, and workspace_id are already documented in the schema. The description adds only an implicit permission qualifier ('a site you can edit') and says nothing about workspace_id, so it does not meaningfully extend parameter meaning beyond the schema — 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 and resource ('Export the records in a collection') plus a hard scope limit of 5000 records. It explicitly separates itself from the sibling 'query_site_records', so an agent can choose between them 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?

Gives an explicit positive use case ('Use for backup or analysis') and an explicit exclusion with reasoning: query_site_records caps at 200 records and cannot page past them, so it cannot be used for totals. The selection condition is fully specified rather than inferred.

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.