Skip to main content
Glama

Query staged POWER observations

nasa_power_dataframe_query
Read-onlyIdempotent

Run one read-only SELECT over tables in an explicitly supplied canvas_id. Inspect names and units with nasa_power_dataframe_describe. External files, imports, writes and system catalogs are refused. Returns at most 1,000 rows and 40,000 JSON characters; truncated rowCount counts only materialized rows.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "canvas_id": "<canvas_id>",
      "sql": "<sql>"
    },
    "name": "nasa_power_dataframe_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesOne read-only SELECT, at most 16,384 characters
rowLimitNoPositive maximum row count; values above 1,000 use an effective cap of 1,000
canvas_idYesCanvas token returned by a producing POWER tool

Output Schema

NameRequiredDescriptionDefault
rowsNoJSON-safe projected values
errorNoPresent when the call failed. Absent on success.
noticeNoEffective output row cap when the requested limit is larger
columnsNoProjected SQL column names
rowCountNoNumber of materialized rows; capped when truncated
canvas_idNoExplicit canvas capability token
truncatedNoWhether additional result rows exist
shownCountNoRows shown in this response
countSemanticsNoMeaning of rowCount

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `canvas_unavailable`: Analytical workspace is disabled or native support is unavailable. `canvas_not_found`: Token is absent, expired or belongs to another tenant. `canvas_capacity_exhausted`: Canvas or process query capacity is exhausted. `missing_table`: SQL names an absent table. `invalid_sql`: SQL has invalid syntax or binding. `sql_execution_error`: SQL conversion or evaluation fails. `non_select_statement`: SQL is not a SELECT. `multi_statement`: SQL contains several statements. `denied_function`: SQL invokes a denied function. `system_catalog_access`: SQL accesses system catalogs. `sql_read_only`: SQL reaches outside read-only staged data. `plan_operator_not_allowed`: SQL plan uses an unavailable operator. `query_limit`: SQL length or projected values exceed the response budget. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `canvas_unavailable`: Analytical workspace is disabled or native support is unavailable. `canvas_not_found`: Token is absent, expired or belongs to another tenant. `canvas_busy`: Another operation occupies this canvas, or the process query pool is full. `missing_table`: SQL names an absent table. `invalid_sql`: SQL has invalid syntax or binding. `sql_execution_error`: SQL conversion or evaluation fails. `non_select_statement`: SQL is not a SELECT. `multi_statement`: SQL contains several statements. `denied_function`: SQL invokes a denied function. `system_catalog_access`: SQL accesses system catalogs. `sql_read_only`: SQL reaches outside read-only staged data. `plan_operator_not_allowed`: SQL plan uses an unavailable operator. `query_limit`: SQL length or projected values exceed the response budget. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "canvas_unavailable",
      -  "canvas_not_found",
      -  "canvas_capacity_exhausted",
      -  "missing_table",
      -  "invalid_sql",
      -  "sql_execution_error",
      -  "non_select_statement",
      -  "multi_statement",
      -  "denied_function",
      -  "system_catalog_access",
      -  "sql_read_only",
      -  "plan_operator_not_allowed",
      -  "query_limit"
      -]New value: +[
      +  "canvas_unavailable",
      +  "canvas_not_found",
      +  "canvas_busy",
      +  "missing_table",
      +  "invalid_sql",
      +  "sql_execution_error",
      +  "non_select_statement",
      +  "multi_statement",
      +  "denied_function",
      +  "system_catalog_access",
      +  "sql_read_only",
      +  "plan_operator_not_allowed",
      +  "query_limit"
      +]
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Although annotations already declare read-only and idempotent behavior, the description adds important context: only one SELECT is allowed, external files and writes are refused, and system catalogs are blocked. It also discloses return limits and the meaning of truncated rowCount, which is valuable behavioral detail.

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 definition is four short sentences and is front-loaded with the operation and scope. Every sentence adds useful information: the SELECT constraint, the sibling alternative, the refusal rules, and the output limits.

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?

With an output schema present, the description need not explain return shapes. It still covers the key operational constraints an agent needs: read-only access, canvas scoping, refused operations, and result truncation limits.

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 coverage is 100%, so all three parameters are already documented. The description reinforces that canvas_id must be explicitly supplied and that results are capped at 1,000 rows, but it does not add syntax or format guidance beyond the schema. Baseline 3 is appropriate.

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 states a specific verb and resource: run one read-only SELECT over tables in a supplied canvas_id. It also distinguishes the tool from its sibling by directing metadata inspection to nasa_power_dataframe_describe, so an agent can tell which tool to use.

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

Usage Guidelines5/5

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

It explicitly points to nasa_power_dataframe_describe for inspecting table names and units, and it lists what is refused: external files, imports, writes, and system catalogs. Those exclusions give clear when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.