Skip to main content
Glama
DimiDR

SAP Datasphere MCP Server

by DimiDR

get_task_history

Retrieve execution history for any task chain in SAP Datasphere, displaying status, timestamps, and runtime to audit runs, diagnose failures, and track performance.

Instructions

Get the execution history for a specific task chain or object in SAP Datasphere.

Use this tool when:

  • Viewing all previous runs of a task chain

  • Analyzing task execution patterns

  • Finding failed runs to investigate

  • Checking historical performance

  • Auditing task chain executions

  • Understanding run frequency and duration

What you'll get:

  • Array of all historical task runs for the specified object

  • Each entry includes: logId, status, startTime, endTime, runTime

  • Sorted by most recent first

  • Shows RUNNING, COMPLETED, FAILED, CANCELLED runs

Required parameters:

  • space_id: The space containing the task chain

  • object_id: The task chain name to get history for

Response includes for each run:

  • logId: Unique identifier for this execution

  • status: RUNNING, COMPLETED, FAILED, or CANCELLED

  • startTime: When the task started (ISO format)

  • endTime: When the task finished (if completed)

  • runTime: Duration in milliseconds

  • objectId: The task chain name

  • applicationId: Always 'TASK_CHAINS' for task chains

  • activity: The activity type (e.g., 'RUN_CHAIN')

  • user: Who initiated the run

Example queries:

  • "Show me the run history for Daily_ETL_Pipeline in SALES_SPACE"

  • "List all executions of Customer_Sync in FINANCE"

  • "Get historical runs for Nested_Chain_1 in DWH_SPACE"

  • "How many times has Data_Refresh run this week?"

Use cases:

  • Identify recurring failures

  • Analyze execution duration trends

  • Find specific failed runs to debug

  • Audit who ran tasks and when

  • Plan maintenance windows

  • Monitor SLA compliance

Workflow example:

  1. Get history: get_task_history(space_id='SALES', object_id='Daily_ETL')

  2. Find failed run: Look for status='FAILED', note logId

  3. Get details: get_task_log(space_id='SALES', log_id=, detail_level='detailed')

  4. View error messages in the response

Note: Uses API: GET /api/v1/datasphere/tasks/logs/{space_id}/objects/{object_id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
space_idYesThe space ID containing the task chain (e.g., 'SALES_SPACE', 'FINANCE'). Must be uppercase.
object_idYesThe task chain name/identifier to get history for (e.g., 'Daily_ETL_Pipeline', 'Customer_Sync').
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses sorting order ('Sorted by most recent first'), statuses included, and detailed response fields. It also mentions the API endpoint. However, it does not mention potential limits, pagination, or error behavior, which would be useful for full transparency, but the disclosure is still strong.

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?

The description is long but well-structured with clear headings, bullets, and sections. It is front-loaded with the core purpose and then provides examples and use cases. Some redundancy exists between 'What you'll get' and 'Response includes', but overall it is scannable and every section contributes value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description compensates by thoroughly listing every response field with descriptions. It also provides a workflow example, API endpoint, and use cases. For a tool with only two simple parameters, this is comprehensively sufficient.

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% and each parameter already has an informative description including examples and casing requirements. The tool description repeats these examples and adds query examples, but does not introduce new semantic meaning beyond the schema. Baseline 3 is appropriate.

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 opens with a specific verb and resource: 'Get the execution history for a specific task chain or object in SAP Datasphere.' It clearly differentiates from siblings like get_task_status (status) and get_task_log (log details) by focusing on historical runs. The 'Use this tool when' list further reinforces its purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'Use this tool when' section lists six concrete use cases. The workflow example demonstrates how to chain get_task_history with get_task_log, indicating when to use the alternative. Example queries provide practical context for invocation.

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

Install Server

Other Tools

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/DimiDR/SAP-Datasphere-MCP'

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