Skip to main content
Glama
josecarlos3390

SAP HANA MCP Server

List table constraints

hana_list_constraints
Read-onlyIdempotent

List primary key, unique, check, and foreign key constraints for any table by querying SAP HANA's system catalogs, enabling quick schema analysis.

Instructions

List primary key, unique, check, and foreign key constraints for a table (SYS.CONSTRAINTS + SYS.REFERENTIAL_CONSTRAINTS).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_nameYesTable name
schema_nameNoSchema name (defaults to HANA_SCHEMA)
catalog_databaseNoMDC catalog database for SYS.* (overrides HANA_METADATA_CATALOG_DATABASE)
Behavior3/5

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

Annotations already declare the operation safe (readOnlyHint, idempotentHint, destructiveHint false). The description adds the source catalog views and the constraint types returned, but does not elaborate on behavior such as ordering, pagination, or error handling. It does not contradict 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?

The description is a single, front-loaded sentence that directly states the tool's function. It includes useful implementation detail in parentheses without any redundant or filler content.

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?

For a simple read-only metadata list tool with well-documented parameters and safe annotations, the description is sufficiently complete for an agent to invoke it correctly. It states what types of constraints are returned and the source system views, though it does not describe the exact output columns, which is a minor gap given no output schema.

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?

The input schema already provides complete descriptions for all three parameters (table_name, schema_name, catalog_database), including default behavior. The tool description does not add further explanation of parameter semantics, so it stays at the baseline for 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 a specific action ('List') and a specific resource ('primary key, unique, check, and foreign key constraints for a table'). It also identifies the underlying system views, making the tool's scope unambiguous and distinguishing it from sibling tools like hana_list_foreign_keys.

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 implies usage: call this when you need constraint information for a table. However, it provides no explicit guidance about when to prefer this over alternatives (e.g., hana_list_foreign_keys) or any exclusions, so usage guidance remains only implicit.

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