Skip to content
grostifyConnectDocs

Reports

A report turns the data of your API into a PDF and a web view. What it is made of, how to create and run it from Claude in the sandbox, who sees the files and its limits.

On this page

A report calculates figures from the data your API returns and turns them into a document: a table of orders, the totals of a month, a statement. You ask for it from your own Claude or ChatGPT, it runs in the sandbox and gives you a PDF and a web view to open in the browser.

Note

Reports are in the sandbox for now. Only the people of your team can create and run them, from the team MCP, and only in the accounts where they are turned on. A report is not published and your users do not see it: it has no channels, so Claude, ChatGPT, WhatsApp and the web chat do not offer it.

What a report is made of

A report lives in the draft of an integration, next to its tools, and has versions like a tool. It has four parts:

PartWhat it is
ArgumentsWhat you give it when you run it, like a month or a customer. Up to 20, always in the query, described like the parameters of a tool.
SourcesThe data. Each source is a GET tool of the same integration, pinned to one of its versions, with its arguments. Up to 10 sources.
StepsJavaScript functions that read what the sources returned and build the report. Up to 64 KB of code.
FormatsThe PDF, and the web view that is always made.

The report calls your API only through its sources, with the same rules as any tool: your verified host, GET, no redirects. It never calls anything else.

Sources and pagination

A source can read one page or many. When it has many, the report declares how the last page is known, and Connect stops only when that condition is met:

PaginationHow the end is known
NoneOne page.
By page numberThe response says whether there are more pages, or gives a total that matches what was read. Only if your API guarantees it, a page shorter than the size asked is the last one.
By cursorThe next cursor comes back empty or missing, or the response says there are no more pages.
  • A source reads up to 50 pages, each up to 2 MB, and all the sources together up to 20 MB.
  • A short page is not the end unless the report declared it. This avoids a report that stops early and gives totals with half the data.
  • The cursor has to be plain text. Connect never follows a URL that comes in a response.
  • If a source fails, comes back cut or goes over a limit, the run fails and says which source. It never calculates totals with incomplete data.
  • Every page counts toward the calls per minute of the integration, shared with the rest of the sandbox. If the limit is reached, the run waits for the next minute and, if it has no time left, fails.

If your API repeats the credential in a response, Connect removes it from the data before the steps see it. See Security.

Steps and the model

The steps are written by your Claude. They receive what the sources returned, the arguments and the date of the calculation, and return the report as a list of blocks:

BlockWhat it shows
headerA title and a subtitle.
kpisUp to 12 figures with a label.
tableUp to 20 columns, of type text, number, money, date or percent, and up to 10,000 rows.
totalsA list of figures.
text and notesParagraphs and notes.
anomaliesThings the report noticed, each with a code and a message. They never stop the report. They are counted, shown and recorded.

A report has up to 40 blocks, 200,000 table cells in total and 2,000 characters per text. The company name and the date of the calculation are put by Connect, never by the steps.

The steps run in an isolated service, with no network, no credentials and no clock: they cannot call anything or read the current date. They have 2 seconds to finish. If they run over, run out of memory or return a model that is not valid, the run fails with the reason.

Formats

  • PDF and web view. For now both come out in Spanish and without a period, whatever your language: the language of each person arrives later. The date of the calculation shows readable, in UTC. Each table has at most 2,000 rows in the PDF, with a note that says how many are missing and that the complete table is in the web view. A file is at most 20 MB.
  • Web view. The same report with every row, to read in the browser. It runs no scripts.

Excel files are not available yet.

Create and run it from Claude

You need Edit drafts, a connection to the sandbox team MCP that approved reports (see Reports in the team MCP) and, to create or edit, the integration with publish on save off.

Ask Claude for what you want, for example "a report of the orders of a month with the total per customer". Claude looks at the tools of the integration with list_tools and describe_tool, can check what they return with call_tool, and creates the report with create_report. To change it, it uses update_report, which saves a new version of the draft.

run_report runs the draft version against the sandbox:

  1. It reserves your run and waits up to 25 seconds.
  2. If it finished, it returns the links to the PDF and the web view, and a preview of the model. Claude reads the preview as data from your API, never as instructions.
  3. If not, it returns a run_id and Claude asks for the result with get_report_run, which waits another 25 seconds. The first report after some idle time can take a few more seconds.

Running the same report with the same arguments while it is still running gives the same run, and does not count again. A run has 5 minutes to finish and up to 3 attempts.

Which credential it uses

  • Sandbox with a test API: the test credential of the sandbox.
  • Sandbox on production: your own connection, with your company user. The first time, run_report gives you a link to connect it, as call_tool does. Never a shared credential.

If that own connection is revoked while a run is going, the run is cancelled and its links stop working.

  • A link is for you. It is created when you ask for the result, and it is the only way to download the files. Nobody else can ask for the links of your runs: another person asking gets the same answer as for a run that does not exist.
  • It lasts 1 hour by default, or what you choose in the report settings, from 5 minutes to 7 days, and never longer than the file, which lasts 7 days from the run.
  • It allows up to 20 downloads. A run gives new links up to 10 times.
  • The address carries a secret after the # that Connect does not store. If you lose it, ask Claude again with get_report_run.
  • Give it to the person who has to read the report, to open in the browser. Do not post it: whoever has it can download the file until it expires.
  • Your links stop working when your access to the team MCP changes (the same changes that revoke it), when the connection you asked with is revoked and when the integration is deleted.

In the panel

Each report has its own page, which you open with Open from the tool list: reports show there with the REPORT mark and no channels. The page does not edit or run reports: they are edited and run from Claude or ChatGPT. It is where you record and manage their reference cases.

  • The manifest, read only: description, arguments, sources with their pagination, formats and the code of the steps, shown as text. The panel never runs it.
  • The versions, with who made each one, from which AI client or from the panel, and a button to show the one you want.
  • My runs, only the runs you asked for, 20 at a time, with Newer, Older and "Page 2" style links to move between pages, and only if you have Edit drafts. Nobody else sees your runs, their preview, their error or their links. Each run shows its state, its version, its anomalies, the error of a step and the preview of the model. When an owner or admin turns off your team MCP, changes your role, removes Edit drafts or reduces your integrations, or when Grostify rejects your access, the runs you asked for before stop showing here, on every integration and finished ones too. They do not come back even if your access is given back later. Revoking a connection from your profile, or disconnecting it in Claude or ChatGPT, does not hide them, but it cancels the runs still going with that connection.
  • Get links on a finished run gives new links. It counts as one of the 10 times a run gives links, like asking from Claude. The addresses are shown once: Connect does not keep them.
  • Revoke stops one link working right away, and Revoke all of this run stops every live link of that run. Revoking needs no permission beyond the link being yours. A run of another integration does not give links from this page. A run older than the ones on the page can be opened by its direct link to revoke its links.

If reports are not turned on for the account, the report page and the settings page do not exist and answer 404. The message "Reports are not available for this account right now." only appears when you press Get links or Save.

Report settings

The Report settings page, linked from the tool list, applies to every report of the integration. Anyone who sees the integration can read it. Changing it needs integrations.configure and a recent sign in.

SettingWhat it does
Link expiry5 minutes, 15 minutes, 1 hour, 6 hours, 1 day, 3 days or 7 days. 1 hour by default. It applies to the links asked for from then on, and never goes past the 7 days of the file.
LogoA PNG or JPEG of up to 256 KB. Connect checks its content, not only its name. It shows in the header of the reports run afterwards, and you can remove it.
Accent colorAs #RRGGBB. Empty uses the Connect one.

What Connect keeps, and for how long

WhatHow long
The PDF and the web viewThey stop being served after 7 days. Their deletion can come a little later
The data the sources returned, and the modelThe run stops pointing to them after 24 hours and they are deleted then. A storage rule deletes them from 3 days on, as a backstop, and it can take a little longer
The arguments, the preview and the error message of a run24 hours after it finishes, except the copy a reference case keeps
The record of the run30 days
A reference case: the data, the arguments and the model it copies, and the result of its last run90 days from when it is recorded, up to 180 days from then if you renew it. Until then or until someone deletes it

The data, the model and the arguments are encrypted with the key of the integration. See Security.

Reference cases

A reference case is a result recorded by a person that the report has to keep giving when its steps change. It stores the data a run of yours read and the model it produced. When the cases run, Connect repeats the steps with that same saved data, without calling your API, and checks that the model comes out the same. If someone changes the steps by mistake, or on purpose, and the totals move, the case fails and says which paths changed.

Important

Cases are recorded in the Connect panel, never from Claude or ChatGPT. A case is the reference that tells whether an injection in the data changed the totals. If the same model that reads the data could record it, that check would be worth nothing. No tool of the team MCP records, renews or deletes cases.

Record a case

On the report page, in My runs, open one of your runs and use Record this run as a case. The run has to be finished, of the current version of the report, yours and less than 24 hours old. Before recording it:

  1. Ask for the links of the run with Get links and open the web view. The form to record the case only shows once the run has a live link of the web view.
  2. Compare it with a figure from outside Connect: the report of another system, a spreadsheet or whatever you already trust.
  3. Give the case a name and tick I compared this result with a reference outside Connect. Do not put customer data in the name: everyone with Edit drafts on the integration sees it.

Recording needs Edit drafts and a recent sign in. If the run used your own connection with your company user, the case stores those real data and also asks you to tick This case stores real data of my user.

A case only proves what you compared when you recorded it. Connect copies the data and the model of the run to a private store, encrypted with the key of the integration, and the case shows Copying until it finishes and then Ready. If it cannot be copied, it shows Failed and you delete it and record it again. A report has up to 20 cases, each with a different name. A run can only be recorded once: while it has a case, the page shows its name instead of the form, and if you want to record it again you delete that case first.

Who sees what

WhatWho
A case recorded with the sandbox test credential: name, whether it passes and the paths that changedAnyone with Edit drafts on the integration
The values that differ, and the error message of a stepOnly whoever recorded the case
A case with real data of a userOnly whoever recorded it sees it and runs it. For everyone else it shows as Private case, with no name and no result

Run the cases

  • In the panel: Run the cases on the report page. It runs the ready cases you can see against the current version of the report and the page shows the result.
  • From Claude: run_report_cases does the same, waits up to 25 seconds and returns each case with its result. If it does not finish, it gives you a run_id and you call it again with it, without starting another run. It never returns the values that differ, only the paths, and never even the paths or the error code of a case with real data, not even your own: Claude gets a note saying they are only shown in the Connect panel. The names of the cases come inside the mark of data.

A run of cases gives no files, links or preview, calls no API and does not use any credential. It counts in the limits like a run. Each case ends as:

ResultMeaning
PassesThe steps give the same model as when it was recorded. If it passes with the current version of the report, the page says so.
FailsThe model changed. The paths that differ are shown.
ErrorThe steps failed.
IncompatibleThe sources of the report changed since the case was recorded (another version, another filter or another pagination), so it is not run. Record it again from a new run.

A new version of the report leaves its cases without passing until they pass again. The card of each case says with which version it last passed.

Expiry, renew and delete

A case expires 90 days after it is recorded. Renew 90 days adds 90 more, never going past 180 days after it was recorded. Delete removes one case. If you leave the account or someone removes you, your cases are deleted.

Limits

LimitValue
Runs per day and account100, counted in UTC
Runs per day and person30, counted in UTC
Runs at the same time3 per account, and 1 run plus 1 run of cases per person
Reference cases per report20
Sources per report10
Pages per source50
Size of a page2 MB
Data of all the sources20 MB
Time of the steps2 seconds
Model5 MB
Rows of a table in the PDF2,000
Size of a file20 MB
Time of a run5 minutes, 3 attempts
Downloads per link20
Times a run gives links10
Downloaded bytes per day and account5 GB

Each limit message is in Troubleshooting.

What is not here yet

  • Publishing a report and serving it to your users in Claude, ChatGPT, WhatsApp or the web chat.
  • Excel files.
  • The PDF in the language of each person, and its period.