Skip to main content
Glama
MarioDeFelipe

SAP Datasphere MCP Server

query_analytical_data

Execute OData queries on analytical models to retrieve aggregated data with dimensions, measures, filters, sorting, and aggregations for business intelligence and reporting.

Instructions

Execute OData queries on analytical models to retrieve aggregated data with dimensions and measures. Supports full OData query syntax: $select (column selection), $filter (WHERE conditions), $orderby (sorting), $top/$skip (pagination), $apply (aggregations with sum/average/min/max/count/groupby). Perfect for business intelligence, reporting, and data analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoMaximum number of results (default: 50, max: 10000)
skipNoNumber of results to skip for pagination
applyNoAggregation transformations (e.g., 'groupby((Currency), aggregate(Amount with sum as TotalAmount))')
countNoReport a row count. Analytical entities declare Countable:false, so $count is not sent -- the count returned covers the current page only.
filterNoOData $filter. Operators: eq ne gt ge lt le, and/or/not, (). Partial text matching: startswith(Field,'v'), endswith(Field,'v'), contains(Field,'v') -- text columns only. Values must be single-quoted and are CASE-SENSITIVE ('us' does not match 'US'). A value containing a single quote cannot be filtered on at all. Example: startswith(Product,'TV') and Country eq 'US'. Filtering a dimension is much cheaper than filtering an aggregated measure. Assets whose lineage includes federated sources accept only eq/and/or/().
selectNoComma-separated list of dimensions/measures to return (OData $select)
orderbyNoSort order (e.g., 'Amount desc, TransactionDate asc')
asset_idYesAsset identifier
space_idYesSpace identifier
entity_setYesEntity set name to query
Behavior5/5

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

With no annotations present, the description carries full responsibility for behavioral disclosure. It provides several non-obvious behavioral details: filtering dimensions is cheaper than filtering measures, federated sources support only eq/and/or/(), values must be single-quoted and are case-sensitive, and a value containing a single quote cannot be filtered on. This goes well beyond the schema and informs the agent of important limitations and performance characteristics.

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 two sentences and front-loaded with the primary action. The second sentence compactly lists all supported OData clauses in a single line, and the third clause adds clear use cases. No word is wasted, and the structure makes the tool's capability immediately apparent.

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?

Despite lacking an output schema, the description provides a comprehensive view of what the tool does, its supported syntax, and its intended use cases. The rich param schema covers the individual parameters, while the description supplies the overarching query context and behavioral caveats. For a query tool of this complexity, the combination is sufficiently complete.

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 adds a high-level overview of OData syntax but does not add significant per-parameter meaning beyond what the schema already explains. The schema's parameter descriptions already cover examples, defaults, and constraints, so the tool description's additional value is marginal.

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's purpose: executing OData queries on analytical models to retrieve aggregated data. It names the supported query capabilities ($select, $filter, $orderby, $top/$skip, $apply), making it distinct from sibling tools like query_relational_entity or execute_query. The resource (analytical models) and action (execute/retrieve) are specific and unambiguous.

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 indicates when to use the tool ('Perfect for business intelligence, reporting, and data analysis') and defines its domain as analytical models. It does not explicitly name alternatives or state when not to use it, but the analytical/OData focus provides clear contextual guidance versus relational query tools.

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/MarioDeFelipe/sap-datasphere-mcp'

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