Skip to main content
Glama
DimiDR

SAP Datasphere MCP Server

by DimiDR

get_task_log

Retrieve task execution details and logs in SAP Datasphere to check status, debug failures, and monitor pipeline progress.

Instructions

Get detailed information about a specific task execution in SAP Datasphere.

Use this tool when:

  • Checking status of a running task (after run_task_chain)

  • Investigating why a task failed

  • Viewing detailed execution logs and messages

  • Monitoring task chain progress

  • Debugging data pipeline issues

What you'll get (depends on detail_level):

  • status (default): Simple status object {"status": "COMPLETED"}

  • status_only: Just the status string "COMPLETED"

  • detailed: Full details including messages and child nodes

  • extended: Extended logs with complete message details

Required parameters:

  • space_id: The space where the task ran

  • log_id: The log ID from run_task_chain or get_task_history

Optional parameters:

  • detail_level: Amount of detail to return

    • 'status' (default): Status object only

    • 'status_only': Status string only

    • 'detailed': Full logs with messages and children

    • 'extended': Extended logs with message details

Status values:

  • RUNNING: Task is currently executing

  • COMPLETED: Task finished successfully

  • FAILED: Task encountered an error

  • CANCELLED: Task was manually stopped

Example queries:

  • "Check status of task log 2295172 in SALES_SPACE"

  • "Get detailed logs for log ID 2295172"

  • "Show me why task 2326060 failed in FINANCE"

  • "Get extended execution details for log 2295172"

Detailed response includes:

  • logId, status, startTime, endTime, runTime

  • objectId (task chain name)

  • user who ran the task

  • children: Array of child task executions

  • messages: Array of log messages with severity and timestamps

Use cases:

  • Monitor long-running ETL jobs

  • Debug failed data pipelines

  • Audit task execution history

  • Track data refresh timing

  • Investigate error messages

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
log_idYesThe log ID to retrieve details for (obtained from run_task_chain or get_task_history).
space_idYesThe space ID where the task ran (e.g., 'SALES_SPACE', 'FINANCE'). Must be uppercase.
detail_levelNoLevel of detail to return. Options: 'status' (default), 'status_only', 'detailed', 'extended'.status
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It discloses the underlying API (GET), explains the four detail_level outputs, lists response fields (logId, status, messages, children), and enumerates possible status values. This is exceptionally transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with sections and bullet points, but it is quite verbose for a simple read tool. There is redundancy between 'What you'll get' and 'Optional parameters' both explaining detail_level, and the 'Use cases' section largely repeats the 'Use this tool when' list.

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, but the description compensates thoroughly by detailing response contents, status values, example queries, and use cases. It gives an AI agent everything needed to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema documentation covers all 3 parameters with descriptions, so the baseline is 3. The description adds extra value by explaining where log_id comes from, providing example space_id values, and elaborating on the detail_level enum beyond the schema's bare enumeration.

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 uses a specific verb 'Get' and identifies a precise resource: 'detailed information about a specific task execution in SAP Datasphere'. It clearly distinguishes this from sibling tools like get_task_status and get_task_history by focusing on a single log and referencing run_task_chain.

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

Usage Guidelines4/5

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

Provides explicit 'Use this tool when' scenarios (checking status, investigating failures, viewing logs, monitoring progress). It also indicates log_id provenance from run_task_chain or get_task_history. However, it lacks explicit when-not-to-use guidance or named alternatives like get_task_status.

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