Skip to main content
Glama
josecarlos3390

SAP HANA MCP Server

Get sample rows from a table

hana_get_sample_data
Read-onlyIdempotent

Preview table data by fetching a limited number of rows from any SAP HANA table, with configurable row count and schema support.

Instructions

Fetch the first N rows from a table using SELECT TOP. Result is shaped by the same row/column/cell caps as hana_execute_query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of rows (default 10, max HANA_MAX_RESULT_ROWS)
table_nameYesTable name
schema_nameNoSchema name (defaults to HANA_SCHEMA)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
rowsYes
offsetYes
columnsYes
maxRowsYes
elapsedMsNo
totalRowsNo
truncatedYes
nextOffsetNo
snapshotIdNo
appliedWrapYes
returnedRowsYes
columnsOmittedYes
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds useful behavioral context about result shaping with row/column/cell caps, which goes beyond annotations. No contradiction with the annotations.

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?

Two compact sentences with no filler. The first sentence states the core function, and the second adds a relevant constraint about result caps. Every word earns its place.

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

Completeness4/5

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

With an output schema and strong annotations, the description covers the essential behavior. A minor omission is the lack of any note about row ordering (SELECT TOP without ORDER BY), but for a simple sampling tool this is not critical. Overall it is quite 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 descriptions for all three parameters are complete, covering defaults and maximums. The description adds no additional parameter semantics, so baseline 3 applies due to 100% schema coverage.

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 verb 'Fetch' and the resource 'first N rows from a table', with explicit method 'SELECT TOP'. This distinguishes it from the more general hana_execute_query, making the tool's function unambiguous.

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

Usage Guidelines3/5

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

The description does not explicitly state when to prefer this tool over alternatives like hana_execute_query. The reference to 'same caps as hana_execute_query' implies a scoped sampling use case, but the usage context is only implied, not explicitly stated.

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/josecarlos3390/sap-hana-mcp-server'

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