Skip to main content
Glama
DimiDR

SAP Datasphere MCP Server

by DimiDR

query_relational_entity

Run OData queries on relational entities for ETL data extraction, enabling large batch processing, filtering, column selection, and pagination for data warehouse loading.

Instructions

Execute OData queries on relational entities for ETL data extraction. Supports large batch processing (up to 50,000 records), advanced filtering, column selection, and pagination. Optimized for data warehouse loading and analytics pipelines. Use list_relational_entities to discover available entity names first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoMaximum records to return (default: 1000, max: 50000 for ETL)
skipNoNumber of records to skip for pagination
filterNoOData $filter expression (e.g., "amount gt 1000 and status eq 'ACTIVE'")
selectNoComma-separated column list for $select (e.g., "customer_id,amount,date")
orderbyNoOData $orderby expression (e.g., "amount desc, date asc")
asset_idYesAsset identifier - same as used in list_relational_entities (e.g., 'SAP_SC_FI_AM_FINTRANSACTIONS')
space_idYesSpace identifier (e.g., 'SAP_CONTENT')
entity_nameYesEntity name from the OData service (e.g., 'Results', 'Data'). Use list_relational_entities to get available entity names. If unsure, try using the asset_id as entity_name.
Behavior3/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It adds useful context like support for large batch processing (up to 50,000 records), filtering, column selection, and pagination, but does not mention return format, error handling, or whether it is strictly read-only. Since it is a read-oriented query tool, the information provided is somewhat adequate but incomplete.

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

Conciseness5/5

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

The description is concise: three sentences, front-loaded with the core purpose, and includes only relevant details like limits and a prerequisite. Every sentence contributes value without redundancy.

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

Completeness3/5

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

Given the tool has 8 parameters and no output schema, the description covers the core purpose, capabilities, and batch limit, but omits return format and error semantics. The prerequisite guidance is helpful, but the absence of output schema information creates a noticeable gap for an agent predicting results.

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%, so the baseline is 3. The description mentions capabilities like filtering, column selection, and pagination, which map to existing parameters (filter, select, top/skip), but it does not add new semantic meaning beyond the schema. The reference to list_relational_entities is also already embedded in the entity_name parameter description.

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 clearly states the tool 'Execute[s] OData queries on relational entities' for 'ETL data extraction', a specific verb and resource. It distinguishes itself from sibling tools like query_analytical_data by explicitly focusing on relational entities and OData, and by mentioning the prerequisite discovery tool.

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?

The description provides clear context for when to use the tool ('data warehouse loading and analytics pipelines') and explicitly instructs to 'Use list_relational_entities to discover available entity names first', which is a helpful prerequisite. It does not explicitly state when not to use it or name alternative tools to avoid, but the relational/analytical distinction is clear.

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