Skip to main content
Glama
ivossos
by ivossos

copy_data

Copy financial data between scenarios, years, or periods in Oracle EPM Cloud FCCS to replicate or transfer consolidation information.

Instructions

Copy data between scenarios, years, or periods / Copiar dados

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_scenarioNoSource scenario
to_scenarioNoTarget scenario
from_yearNoSource year
to_yearNoTarget year
from_periodNoSource period
to_periodNoTarget period

Implementation Reference

  • Main tool handler function that processes parameters and calls the FCCS client to copy data.
    async def copy_data( from_scenario: Optional[str] = None, to_scenario: Optional[str] = None, from_year: Optional[str] = None, to_year: Optional[str] = None, from_period: Optional[str] = None, to_period: Optional[str] = None ) -> dict[str, Any]: """Copy data between scenarios, years, or periods / Copiar dados entre cenarios. Args: from_scenario: Source scenario. to_scenario: Target scenario. from_year: Source year. to_year: Target year. from_period: Source period. to_period: Target period. Returns: dict: Job submission result. """ parameters = {} if from_scenario: parameters["fromScenario"] = from_scenario if to_scenario: parameters["toScenario"] = to_scenario if from_year: parameters["fromYear"] = from_year if to_year: parameters["toYear"] = to_year if from_period: parameters["fromPeriod"] = from_period if to_period: parameters["toPeriod"] = to_period result = await _client.copy_data(_app_name, parameters) return {"status": "success", "data": result}
  • Input schema definition for the copy_data tool in TOOL_DEFINITIONS list.
    { "name": "copy_data", "description": "Copy data between scenarios, years, or periods / Copiar dados", "inputSchema": { "type": "object", "properties": { "from_scenario": {"type": "string", "description": "Source scenario"}, "to_scenario": {"type": "string", "description": "Target scenario"}, "from_year": {"type": "string", "description": "Source year"}, "to_year": {"type": "string", "description": "Target year"}, "from_period": {"type": "string", "description": "Source period"}, "to_period": {"type": "string", "description": "Target period"}, }, },
  • Registration of copy_data handler in the central TOOL_HANDLERS dictionary.
    # Data "export_data_slice": data.export_data_slice, "smart_retrieve": data.smart_retrieve, "copy_data": data.copy_data, "clear_data": data.clear_data,
  • Client method invoked by the tool handler to perform the actual FCCS API call for copying data.
    async def copy_data( self, app_name: str, parameters: dict[str, Any] ) -> dict[str, Any]: """Copy data / Copiar dados.""" if self.config.fccs_mock_mode: return {"jobId": "401", "status": "Submitted", "jobType": "CopyData"} payload = {"jobType": "COPYDATA", **parameters} response = await self._client.post( f"/{app_name}/jobs{self._get_query_params()}", json=payload ) response.raise_for_status() return response.json()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ivossos/fccs-mcp-ag-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server