Skip to main content
Glama

Download from Populi to a file

populi_download

Save a Populi API response to a file in the files folder instead of returning it. Handles PDF/XLS/CSV exports, transcripts, grade reports, Slicer results, backups, images, and large paginated lists.

Instructions

GET a Populi route and save the response to a file in the files folder instead of returning it. Use it for routes that return files (PDF/XLS/CSV exports, transcripts and grade reports, Data Slicer results, file and backup downloads, images) and to keep a big list or full export out of the conversation (use all_pages). Takes the same arguments as populi_get. Never overwrites: an existing name gets -1, -2, ... appended. Returns the saved path and a short preview.

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": {
      "path": "<path>"
    },
    "name": "populi_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage of results, 1-based. With all_pages, the page to start from
pathYesRoute under /api2, with real ids, e.g. /people/24469940/leads
limitNoRecords per page
expandNoRelated properties to include
filterNoPopuli filter object (list routes)
paramsNoAny other documented parameters for the route (sort, report options, format, ...)
save_asNoFile name to save under (no folders). Defaults to the name Populi suggests, or a timestamp
all_pagesNoFollow pagination and merge every page into one list
timeout_msNoPer-request timeout. Raise for slow reports and exports (default 120000)
max_recordsNoWith all_pages: stop once at least this many records are collected (the last page is kept whole). The result says whether it finished and, if not, the next_page to continue from

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations it discloses the write-side behavior that matters: output goes to the files folder, existing names are never overwritten and get -1, -2 suffixed, and the return value is the saved path plus a short preview. This also explains the non-idempotent hint declared in the annotations, so the agent understands why repeated calls do not clobber prior results.

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?

A single dense paragraph that is front-loaded with the core action and followed by use cases and write-behavior. Every sentence carries information; the only mild redundancy is mentioning all_pages twice and restating the return value already implied by the schema.

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?

With no output schema, the description supplies the missing return contract (saved path plus preview) and the collision-naming rule, which is what an agent needs to consume the result. It stops short of saying where the files folder lives on disk or what happens on a failed download, which leaves a small hole for a file-writing tool with ten parameters.

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 every parameter already carries its own description and the baseline is 3. The description only adds a cross-reference ('takes the same arguments as populi_get') and repeats the all_pages suggestion, without clarifying save_as naming or max_records continuation semantics beyond what the schema states.

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 states a specific verb and resource ('GET a Populi route and save the response to a file') and immediately distinguishes the tool from its sibling by contrasting 'instead of returning it' with populi_get's inline return. It also enumerates concrete route families (PDF/XLS/CSV exports, transcripts, Data Slicer, backups, images), so an agent can match intent 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?

It gives explicit use conditions: routes that return files, and large lists or exports that should stay out of the conversation, with the mechanism named ('use all_pages'). The implicit counterpart (call populi_get when you want the response inline) is conveyed by 'instead of returning it' and 'takes the same arguments as populi_get' rather than stated as a rule, so there is a small gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.