Skip to main content
Glama

athena_explain_view

Get detailed information about a DataView view: columns, data types, foreign key relationships, and operational warnings. Use this before writing SQL to avoid data loss or errors.

Instructions

Returns detailed information about an athenahealth Snowflake DataView view: description, columns with data types, known enum values, FK relationships, and any operational gotchas. Use this before writing SQL against any view.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viewNameYesView name, e.g. "PATIENT" or "ATHENAONE.PATIENT" or "APPOINTMENTVIEW"
includeColumnsNoInclude column list with data types. Defaults to true.
includeGotchasNoInclude operational warnings specific to this view. Defaults to true.
includeRelationshipsNoInclude known FK relationships from this view. Defaults to true.
Behavior3/5

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

Describes returned info types but no annotations exist. Doesn't disclose side effects, auth needs, or rate limits; acceptable for a read-only info tool but could be more thorough.

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 sentences, front-loaded with action and resource, then usage guidance. No unnecessary words.

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?

Covers key return types despite no output schema; could mention format but sufficient for a param-explanation tool with good schema coverage.

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 covers all 4 params with descriptions; tool description adds context (e.g., examples for viewName) but doesn't significantly enhance beyond schema.

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?

Clearly states it returns detailed info about a Snowflake DataView, listing specific categories (description, columns, enums, FKs, gotchas). Distinguishes from siblings like athena_explain_join.

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?

Explicitly advises using it before writing SQL against any view. Doesn't mention when not to use, but context 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/nous-ehr/claude_pallas_extension'

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