clear_data
Remove specified scenario, year, and period data from Oracle EPM Cloud FCCS to manage financial consolidation and close processes.
Instructions
Clear data for specified scenario, year, and period / Limpar dados
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenario | No | Scenario to clear | |
| year | No | Year to clear | |
| period | No | Period to clear |
Implementation Reference
- fccs_agent/tools/data.py:115-139 (handler)The main handler function that executes the clear_data tool: prepares optional parameters (scenario, year, period) and calls the underlying FCCS client to submit the clear data job.async def clear_data( scenario: Optional[str] = None, year: Optional[str] = None, period: Optional[str] = None ) -> dict[str, Any]: """Clear data for specified scenario, year, and period / Limpar dados. Args: scenario: Scenario to clear. year: Year to clear. period: Period to clear. Returns: dict: Job submission result. """ parameters = {} if scenario: parameters["scenario"] = scenario if year: parameters["year"] = year if period: parameters["period"] = period result = await _client.clear_data(_app_name, parameters) return {"status": "success", "data": result}
- fccs_agent/tools/data.py:206-217 (schema)Input schema definition for the clear_data tool, specifying optional string parameters for scenario, year, and period.{ "name": "clear_data", "description": "Clear data for specified scenario, year, and period / Limpar dados", "inputSchema": { "type": "object", "properties": { "scenario": {"type": "string", "description": "Scenario to clear"}, "year": {"type": "string", "description": "Year to clear"}, "period": {"type": "string", "description": "Period to clear"}, }, }, },
- fccs_agent/agent.py:125-128 (registration)Registration of the clear_data handler (imported from data module) in the central TOOL_HANDLERS dictionary used by the agent."smart_retrieve": data.smart_retrieve, "copy_data": data.copy_data, "clear_data": data.clear_data, # Reports