list_reports lists it.
What the tool does depends on what you pass:
- To duplicate a report, pass
nameandsource_report_id. Optionally passdescriptionandsection_idto replace the source’s. Pass nothing else: the copy lands in the environment the source lives in, so it takes nosandbox_id. - To create a report from scratch, pass
nameandreport_type, plustracked_data_table_idfor a record report. Optionally passdescription,section_idandsandbox_id. A record report needs record reporting enabled for the company.
tracked_data_table_id; a statement report tracks payout statements and takes
no data table. A record report lists only the records of scopes on which a plan
flags a record metric (see
get_report_data).
Use the returned id directly:
list_reports may not show it yet.
Every write to the live environment is recorded in the audit trail as the Qobra MCP agent; writes to a sandbox are not audited.
Example
To copy the “Q3 pipeline” report for the EMEA team, pass the id of the source report, aslist_reports returns it, and the name of the copy:
Parameters
Body
Body
To duplicate a report you can read: its id from list_reports. Pass it with
name and, optionally, description and section_id, nothing else. Omit
it to create an empty report.Free-text note about what the report is for. With
source_report_id it
replaces the source’s description; omit it, or pass an empty one, to keep
the source’s.Only to create from scratch, where it is required; refused with
source_report_id. ‘statement’ (payout statements) or ‘record’ (the rows of
the data table tracked_data_table_id, then required). One of: statement,
record.Only to create a record report from scratch, where it is required; refused
otherwise. Id from list_data_tables.
Id of the section to file the report under: the
section.section_id of a
report in list_reports, from the environment the report lands in; never a
name. Omit it to leave a new report unfiled, or a copy in its source’s
section.