Skip to main content
Glama

eia-energy-mcp-server

Server Details

Browse and query the EIA API v2 — electricity, petroleum, natural gas, coal, forecasts via MCP.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
cyanheads/eia-energy-mcp-server
GitHub Stars
2
Server Listing
@cyanheads/eia-energy-mcp-server

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.
Tool DescriptionsA

Average 4.8/5 across 6 of 6 tools scored.

Server CoherenceA
Disambiguation5/5

Each tool serves a distinct phase in the workflow: discovering routes (browse/search), inspecting metadata (describe_route), fetching data (query_route), and analyzing staged dataframes (dataframe_describe/query). The only potential overlap between route- and dataframe-level 'describe' and 'query' tools is clearly resolved by their descriptions and the explicit separation of EIA routes versus Canvas dataframes.

Naming Consistency3/5

All names use snake_case and the 'eia_' prefix, but the word order is inconsistent: route tools follow verb_noun (browse_routes, describe_route, query_route) while dataframe tools follow noun_verb (dataframe_describe, dataframe_query). This mixed convention is readable but not predictable, making it a minor but real inconsistency.

Tool Count5/5

Six tools is well-scoped for an EIA data access server. Each tool covers a necessary step without redundancy, and the count feels neither thin nor bloated.

Completeness5/5

The tool set provides an end-to-end workflow: discover routes via browse or search, obtain metadata with describe_route, fetch data with query_route, then analyze staged data with dataframe_query and manage dataframes with dataframe_describe. There are no dead ends; dataframes expire automatically, so no explicit cleanup tool is needed.

Available Tools

6 tools
eia_browse_routesBrowse EIA RoutesA
Read-only
Inspect

Lists child routes under a given path in the EIA dataset taxonomy. Start with no path to get the 14 top-level categories (electricity, petroleum, natural-gas, steo, aeo, ieo, seds, etc.), then drill into subcategories. Each result includes an isLeaf flag — leaf routes are queryable endpoints; non-leaf routes have children to browse. When isLeaf is true on the browsed path itself, switch to eia_describe_route.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathNoRoute path to browse (e.g. "electricity", "petroleum/pri"). Omit for root. Leading, trailing, and doubled slashes are stripped, so an EIA-doc spelling like "/electricity/retail-sales/" resolves to the same route.

Output Schema

ParametersJSON Schema
NameRequiredDescription
pathYesThe path that was browsed (empty string for root).
isLeafYesTrue when the browsed path itself is a leaf route — no children to drill into; use eia_describe_route instead.
childrenYesChild entries under the browsed path.
Behavior5/5

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

The description adds meaningful behavioral context beyond annotations: explains the isLeaf flag, leaf vs non-leaf semantics, that leaf routes are queryable endpoints, and that leading/trailing/doubled slashes are stripped. Even though readOnlyHint is already set, this extra information helps the agent understand the traversal behavior and expected outcomes.

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 compact and well-structured: a clear first sentence, followed by usage flow and a conditional switch. No redundant text, every sentence serves a purpose.

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?

The tool is a simple one-parameter browse operation, but the description covers the navigation pattern, the meaning of isLeaf, and the transition to another tool. With an output schema present, this is complete enough for an agent to select and invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema already describes the path parameter, but the description adds extra meaning: 'Omit for root', examples like 'electricity' and 'petroleum/pri', and the slash-stripping behavior. This adds value beyond the 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?

The description clearly states the tool's function: 'Lists child routes under a given path in the EIA dataset taxonomy.' It uses a specific verb ('Lists') and resource ('child routes'), and distinguishes it from siblings like eia_describe_route, eia_search_routes, and eia_query_route by focusing on browsing hierarchy rather than describing, searching, or querying.

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?

Explicit usage guidance is provided: start with no path to get top-level categories, drill into subcategories, and switch to eia_describe_route when isLeaf is true. This clearly tells the agent when to use this tool vs alternatives.

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

eia_dataframe_describeDescribe EIA DataframesA
Read-onlyIdempotent
Inspect

List canvas dataframes (df_) materialized by eia_query_route calls that passed stage: true, with provenance, expiry, row count, and column schema. Nothing is staged until such a call runs, so an empty list on a fresh session means no query has staged yet, not that staging failed. Drops entries for dataframes the canvas no longer holds before responding, so the list is always current. Pass a specific name to inspect one dataframe; omit to list all active dataframes for this tenant. A name that is not staged comes back as found=false alongside the handles that are, never as an empty list. Listing is not use: only an eia_dataframe_query statement naming a dataframe extends its expiry, so a dataframe polled with this tool and never queried still lapses on schedule.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameNodf_<id> handle to describe a single dataframe. Omit to list all active dataframes.

Output Schema

ParametersJSON Schema
NameRequiredDescription
foundNoTrue when the requested name is staged, false when it is not. Absent when no name was supplied — an unscoped list has nothing to resolve.
dataframesYesDataframes matching the requested scope, newest first. Empty when nothing is staged, or when a supplied name does not resolve — read found and active_names to tell those apart.
active_namesYesEvery df_<id> handle staged for this tenant, regardless of the requested scope. On a miss these are the handles that are still usable.
requested_nameNoEcho of the name input. Absent when no name was supplied.
Behavior5/5

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

Beyond the read-only and idempotent hints, the description discloses important behavioral edge cases: the meaning of an empty list on a fresh session, the automatic dropping of stale entries, the found=false response for un-staged names, and the lack of expiry extension. These details are not derivable from annotations and are crucial for correct agent expectations.

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 front-loaded with the core purpose and then layers in essential edge-case behavior. Every sentence adds distinct value, and the length is appropriate for the complexity of the tool. It is well-organized with no filler or redundant repetition.

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?

Given the tool's single optional parameter, a rich output schema (present, so return fields are covered), and thorough annotations, the description fully covers all behavioral nuances: empty list semantics, stale entry cleanup, specific-name lookup, unknown-name behavior, and the distinction between listing and querying for expiry. There are no obvious gaps in what an agent needs to know.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already covers the single 'name' parameter at 100%, so the baseline is 3. The description adds meaningful semantics by explaining the optionality ('Pass a specific name... omit to list all') and the response shape for missing names ('found=false alongside the handles that are'). This goes beyond the schema's straightforward field description, justifying a 4.

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 opens with a specific verb ('List') and clearly identifies the resource ('canvas dataframes (df_<id>) materialized by eia_query_route calls that passed stage: true') and the scope ('with provenance, expiry, row count, and column schema'). It also distinguishes itself from siblings by explicitly contrasting with eia_dataframe_query, ensuring the agent understands this is a listing/inspecting tool, not a querying tool.

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?

The description provides explicit when-to-use and when-not-to-use guidance. It says 'Pass a specific name to inspect one dataframe; omit to list all active dataframes' and cautions 'Listing is not use: only an eia_dataframe_query statement naming a dataframe extends its expiry,' naming the alternative tool and the consequence of misuse. This is a clear usage contract.

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

eia_dataframe_queryQuery EIA DataframesA
Read-onlyIdempotent
Inspect

Run a single-statement SELECT against canvas dataframes registered by eia_query_route calls that passed stage: true — a query that staged nothing leaves no table to select from. Standard DuckDB SQL — joins, aggregates, window functions, CTEs all supported. Reference dataframes by the df_ handles returned by eia_query_route or listed by eia_dataframe_describe. Read-only: writes, DDL, DROP, COPY, PRAGMA, ATTACH, and external-file table functions are rejected. System catalogs (information_schema, pg_catalog, sqlite_master, duckdb_*) are denied. EIA data values are VARCHAR — use CAST(col AS DOUBLE) for arithmetic and aggregation. Optional register_as chains results as a new dataframe with a fresh expiry. Every dataframe named in the statement has its expiry extended by the query.

ParametersJSON Schema
NameRequiredDescriptionDefault
sqlYesSingle-statement SELECT against df_<id> tables. EIA data columns are VARCHAR — use CAST(col AS DOUBLE) for arithmetic. Example: SELECT period, CAST(value AS DOUBLE) AS val FROM df_XXXXX ORDER BY period
previewNoRows to include in the immediate response. Defaults to row_limit. Set lower when chaining via register_as and only a sample is needed inline.
row_limitNoHard cap on rows materialized in the response (default 1000, max 10000). Rows past the cap are dropped without being counted — the response then carries truncated: true and a totalRows equal to the cap rather than a true total. Pass register_as to materialize the whole result instead and get an exact count.
register_asNoWhen set, persist the result as a new dataframe with a fresh expiry. Use to chain analyses without re-running upstream queries. The name must be unused — reusing a staged name is rejected, and the fix is a different name, not dropping the existing dataframe. eia_dataframe_describe lists the names already taken.

Output Schema

ParametersJSON Schema
NameRequiredDescription
rowsYesMaterialized rows, bounded by preview / row_limit.
noticeNoGuidance when either cap bound the response — names the cap that applied and how to reach the rows it withheld.
columnsYesColumn names in projection order.
totalRowsYesRows the query materialized. Exact when truncated is false — including on the register_as path, which stages and counts the whole result past row_limit. Equal to row_limit when truncated is true: a floor on the real match count, not a total.
truncatedYesTrue when row_limit cut the result: more rows matched than the cap and the remainder was dropped without being counted. False when every matching row was materialized, including on the register_as path, which counts the new dataframe exactly.
expires_atNoISO 8601 expiry for the newly registered dataframe, when applicable. Extended each time a later query references it.
executedSqlYesEcho of the SQL statement that was executed — confirms the exact query that ran.
returnedRowsYesRows included in this response.
registered_asNoSet when register_as was supplied and the new dataframe was materialized.
Behavior5/5

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

Beyond annotations (readOnlyHint, idempotentHint), the description discloses critical behaviors: rejection of DDL/DROP/COPY/PRAGMA/ATTACH and external-file functions, denial of system catalogs, VARCHAR data requiring CAST, register_as creating new dataframes with fresh expiries, and expiry extension for named dataframes. These operational details significantly exceed what annotations convey, fully informing the agent of restrictions and side effects.

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 dense but well-organized, starting with the core action, then supported SQL features, data source references, restrictions, type caveat, and optional chaining. Every sentence conveys necessary operational information without redundancy. It is appropriately sized for a complex tool with multiple caveats.

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?

Given the tool's complexity (SQL engine, data type conversions, expiry management, chaining) and the presence of an output schema, the description comprehensively covers prerequisites, restrictions, data handling, and side effects. It explains return nuances like truncation and exact counts via register_as, making it self-sufficient for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema already documents all 4 parameters (100% coverage), the description adds rich behavioral semantics: explains CAST for arithmetic, preview is for chaining via register_as, row_limit has a truncated:true side-effect with totalRows equal to cap, and register_as requires an unused name with a specific rejection/fix behavior. This goes well beyond baseline 3, providing edge-case and workflow guidance not in the 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?

The description clearly states the tool runs a single-statement SELECT against canvas dataframes registered by eia_query_route that passed stage:true. This specific verb+resource combination distinguishes it from siblings like eia_query_route (register queries) and eia_dataframe_describe (list dataframes), making the purpose unmistakable.

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 provides clear context: you need staged dataframes, reference them by df_<id> handles, and standard DuckDB SQL is supported. It implicitly differentiates from eia_query_route by noting this is read-only and that un-staged queries leave no table. However, it doesn't explicitly name alternatives when this tool should not be used, only stating restrictions (no writes/DDL). Strong implied guidance but not fully explicit exclusions, so a 4 is appropriate.

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

eia_describe_routeDescribe EIA RouteA
Read-only
Inspect

Returns metadata for a leaf route: available facets with their valid values, data column names and units, frequency options, and date range. Call this before eia_query_route to discover valid facet IDs, facet values, column IDs, and frequency codes. Each facet returns a capped window of its values with value_count and values_truncated alongside; pass facet and values_offset to page through the rest of one facet. A values_offset past the last value of a facet returns an empty window for it and a notice naming the count to page against. Facet values are fetched from separate EIA endpoints and merged — results are cached per-route for the process lifetime to minimize API calls.

ParametersJSON Schema
NameRequiredDescriptionDefault
facetNoRestrict the response to one facet by ID (e.g. "stateid"). Use with values_offset to page a facet whose values were truncated. Omit to get every facet.
routeYesLeaf route path (e.g. "electricity/retail-sales", "steo"). Discoverable via eia_browse_routes or eia_search_routes. Leading, trailing, and doubled slashes are stripped, so an EIA-doc spelling like "/electricity/retail-sales/" resolves to the same route.
values_offsetNoIndex of the first facet value to return, applied to every facet in the response. Use the value named in a truncation hint to continue past the cap.

Output Schema

ParametersJSON Schema
NameRequiredDescription
routeYesThe route path described.
facetsYesFilterable dimensions. Each facet has an ID and a window of its valid values. Restricted to one entry when the facet input is set.
noticeNoGuidance when values_offset lands past the last value of one or more facets — names each emptied facet, its value_count, and its last valid offset. Absent when every facet returned values.
date_rangeYesAvailable date range for this route.
descriptionYesHuman-readable description of the dataset.
frequenciesYesValid frequency options for eia_query_route.
data_columnsYesData columns available for this route.
values_offsetYesIndex of the first facet value returned, echoing the requested offset.
default_frequencyYesDefault frequency ID used when none is specified.
default_date_formatYesPeriod format for the default frequency (e.g. "YYYY-MM").
Behavior5/5

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

Beyond the read-only and non-open-world annotations, the description reveals substantial behavioral details: capped facet value windows with value_count/values_truncated, pagination via facet and values_offset, behavior when paging past the end, and per-route caching for process lifetime. These are non-obvious and invaluable for the agent.

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 efficiently structured: return value first, then usage, then pagination mechanics, then caching. Every sentence contributes unique information with no redundancy or filler.

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?

The description covers the tool's purpose, workflow placement, pagination edge cases, caching, and data-merge behavior. Since an output schema exists, detailed return-value documentation is not required; the description is fully sufficient for safe and correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema by explaining how facet and values_offset jointly control pagination, the truncation hint mechanism, and the empty-window notice, which enriches parameter understanding.

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 'Returns metadata for a leaf route' and lists the specific metadata components (facets, values, column names, units, frequency, date range). It also distinguishes this metadata-discovery tool from the query tool by explicitly instructing to call it before eia_query_route.

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 explicitly says to 'Call this before eia_query_route' to discover valid IDs and codes, clearly placing it in a workflow. It does not explicitly state when not to use it or compare to siblings like eia_browse_routes, but the leaf-route scope and sequence make usage clear.

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

eia_query_routeQuery EIA Route DataA
Read-only
Inspect

Fetches data from a leaf route with optional facet filters, date range, frequency, and column selection. Use eia_describe_route first to discover valid facet IDs, facet values, column IDs, and frequency codes. Data values are strings in the response (EIA API returns all numeric values as strings, e.g. "9.13"); cast to DOUBLE in SQL when arithmetic is needed. Returns a preview inline and stages nothing by default — one upstream request, whatever total says. Pass stage: true to also page past the preview and stage the accumulated set as a DataCanvas table, then pass the returned dataset name to eia_dataframe_query for SQL. Every dataset a tenant stages lands in the same canvas, so tables from different routes cross-join by name with nothing to thread between calls.

ParametersJSON Schema
NameRequiredDescriptionDefault
endNoPeriod end (same format as start).
sortNoResult ordering.
routeYesLeaf route path (e.g. "electricity/retail-sales", "steo"). Discoverable via eia_browse_routes or eia_search_routes. Leading, trailing, and doubled slashes are stripped, so an EIA-doc spelling like "/electricity/retail-sales/" resolves to the same route.
stageNoStage the matching rows as a DataCanvas table for SQL (default false). Off, the call makes one upstream request and returns the preview alone. On, the service pages past the preview up to EIA_CANVAS_MAX_ROWS and registers the accumulated rows, returning the handle in dataset — several extra upstream requests and seconds of latency on a large route, so turn it on when moving to analysis, not while exploring. Requires a canvas (CANVAS_PROVIDER_TYPE=duckdb); without one nothing is staged whatever this is set to.
startNoPeriod start in the route date format (e.g. "2020-01" for monthly, "2020" for annual). Format from eia_describe_route.
lengthNoRows in the inline preview (default 100, max 5000 per EIA limit). With stage: true, staging is not bounded by this — it pages past the preview on its own.
offsetNoRow offset into the matching set (default 0). An offset at or beyond total returns zero rows.
columnsNoData column IDs to return (reduces payload). Defaults to all. IDs discoverable via eia_describe_route.
filtersNoFacet filters keyed by facet ID (e.g. { "stateid": "TX", "sectorid": ["RES", "COM"] }). Use the facets[].id values returned by eia_describe_route as keys here.
frequencyNoAggregation frequency ID (e.g. "monthly", "annual"). Defaults to route default. Valid IDs from eia_describe_route.

Output Schema

ParametersJSON Schema
NameRequiredDescription
dataYesPreview rows. All numeric values are strings per the EIA API (e.g. "9.13"). Cast to DOUBLE in SQL for arithmetic: CAST(value AS DOUBLE). Per-column units appear as {col}-units fields inline in each row. Keys are dynamic column IDs from the EIA route.
routeYesThe route path queried, in canonical spelling — any leading, trailing, or doubled slashes the input carried are stripped. Reusable verbatim in a follow-up call.
totalYesTotal matching rows in the EIA dataset for this query (may exceed returned rows when pagination or spillover applies).
noticeNoInformational message when the response carries no rows — either zero rows matched the filters (broaden the query) or offset paged past the last row (reduce offset below total).
datasetNodf_<id> table handle for the registered dataset — pass directly to eia_dataframe_query SQL (SELECT ... FROM df_<id>). Present only on a stage: true call against a deployment with a canvas configured; absent otherwise, since nothing was staged. Every dataset a tenant stages shares one canvas, so handles from different routes join directly.
frequencyYesFrequency of the returned data.
appliedEndNoEcho of the end period as applied, when an end was provided.
totalCountYesTotal matching rows in the EIA dataset.
appliedSortNoEcho of the result ordering as applied, when a sort was provided — the ordering that decided which rows a capped stage holds.
date_formatYesPeriod format for the returned data (e.g. "YYYY-MM").
appliedStartNoEcho of the start period as applied, when a start was provided.
appliedLengthYesPreview row count requested for this call.
appliedOffsetYesRow offset applied to the query — the cause when a page comes back empty.
returnedCountYesRows in this response. When returnedCount < totalCount, use offset or canvas for the rest.
appliedColumnsNoEcho of the column projection as applied, when columns were provided.
appliedFiltersNoFacet filters applied to the query, when provided.
effectiveRouteYesThe route path that was queried.
returned_countYesNumber of rows in this response. When returned_count < total, use offset pagination or DataCanvas for the rest.
appliedFrequencyNoEcho of the frequency as applied, when a frequency was provided.
truncation_warningNoUpstream advisories forwarded verbatim from EIA's warnings[], joined with '; ' when more than one applies. These describe the inline page — EIA's "incomplete return" entry fires whenever the requested length is under total, at any size — not a 5,000-row ceiling on this response. Absent when the response already accounts for the gap the advisory names (the staged table reaches the last row, notice explains the empty page, or canvas_preview_note places the inline page against total because nothing was staged).
canvas_preview_noteNoHuman-readable note when total exceeds the inline preview. On a stage: true call it names how many rows actually reached the canvas table, and where in the matching set those rows sit whenever the stage does not start at row 1; when staging also stopped short of total (the EIA_CANVAS_MAX_ROWS cap, or an upstream page that did not return), it says so and gives the offset to resume from. Where staging was not requested it places the inline page against total and names stage: true as the way to get SQL access to the rest; where no canvas is configured at all, staging is unavailable, so it names offset paging and CANVAS_PROVIDER_TYPE=duckdb instead.
Behavior5/5

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

Adds critical behavior beyond the readOnlyHint annotation: all numeric values arrive as strings and must be cast to DOUBLE, the default call makes exactly one upstream request, and staging enables cross-join between tables from different routes. These are non-obvious and materially affect how an agent handles results, going well beyond what annotations state.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact yet information-dense, front-loading the core purpose and then layering workflow, data-type caveat, and staging behavior. A few phrases like 'whatever total says' are slightly opaque, but every sentence contributes distinct value. It could be tightened but is well-structured for a tool with this complexity.

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?

Given the tool's complexity (10 parameters, nested objects, staging modes, and sibling integrations), the description covers the full execution model: discovery prerequisite, preview vs. staging behavior, string casting, and cross-join semantics. An output schema exists, so return values are documented elsewhere. The description leaves no major workflow gap for an agent invoking this correctly.

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% with detailed per-parameter descriptions, so the description need not repeat them. It does add context about the stage parameter's latency trade-off and the string-value gotcha, but that is more cross-cutting behavior than parameter meaning. The description adds minimal new parameter-specific semantics beyond the schema, earning the baseline 3.

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 opens with a specific verb+resource: 'Fetches data from a leaf route' with optional filters, date range, frequency, and column selection. It clearly distinguishes from sibling tools by naming eia_describe_route for discovery and eia_dataframe_query for SQL, establishing this as the data-fetching entry point.

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?

Provides explicit workflow guidance: 'Use eia_describe_route first to discover valid facet IDs...' and 'then pass the returned dataset name to eia_dataframe_query for SQL.' It also clarifies when staging is worth enabling ('turn it on when moving to analysis, not while exploring'), giving concrete when-to-use and when-not-to-use context.

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

eia_search_routesSearch EIA RoutesA
Read-only
Inspect

Fuzzy text search across route names, descriptions, and category labels. Resolves natural-language queries like "electricity retail sales by state" or "natural gas imports" to matching route paths. Multi-term queries are also matched term by term, so combining a commodity, a metric, and a sector — "electricity price residential", "coal generation industrial sector" — reaches the route carrying that data even when no single entry reads like the whole phrase. STEO series names are indexed so queries like "ethanol net imports" or "crude oil production forecast" also resolve, and so are facet values, so a fuel type or sector term like "wind" or "anthracite coal" resolves to the route that exposes it, with filter_hint carrying the filter to pass on. Results include isLeaf so you know whether to browse further or query directly. Results with score > 0.72 are weak matches — try a more specific query or use eia_browse_routes to explore the taxonomy. The first call after server start waits 24-30s while the index warms, and at most 45s; every later call returns in milliseconds. Check indexComplete before reading anything into a short or empty result set.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum results to return (default 10, max 30).
queryYesFree-text search terms to match against route names and descriptions.

Output Schema

ParametersJSON Schema
NameRequiredDescription
capYesThe limit that was applied.
shownYesNumber of results returned.
noticeNoRecovery hint when no routes matched — suggests alternative queries or using eia_browse_routes.
resultsYesRanked matches, best first.
indexGapsNoPresent only when indexComplete is false: route paths whose metadata could not be fetched (call eia_browse_routes on one to re-fetch it) and index passes that did not land ("steo_series", "facet_values").
truncatedYesTrue when matches were capped at limit; more may exist.
totalIndexedYesTotal entries in the search index (routes + STEO series names + facet values).
indexCompleteYesTrue when this answer was ranked against the complete corpus. False means part of it is missing (see indexGaps) — results may be short, and a better match may exist that was never scored.
effectiveQueryYesQuery as submitted to the Fuse.js index.
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses significant behavioral traits: index warm-up time (24–30s first call, milliseconds later), the meaning of isLeaf in results, weak-match score threshold, and indexing of STEO/facet values. This enriches the agent's understanding of response timing and result interpretation.

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 front-loaded with the core function, followed by examples, then advanced matching behavior, result details, and performance caveats. Each sentence contributes unique information; there is no redundancy or irrelevant content.

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?

Given the output schema exists, the description still covers crucial non-schema context: index warm-up latency, weak-match threshold, browsing alternative, and isLeaf/filter_hint semantics. This is enough for an agent to decide when to call and how to interpret results, with no major gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds meaningful semantics for the query parameter: multi-term matching strategy, term-by-term resolution, STEO index coverage, and facet value filtering via filter_hint. But it does not elaborate on the limit parameter, which remains sufficiently described in the 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?

The description clearly states a specific verb and resource: 'Fuzzy text search across route names, descriptions, and category labels' and explains it resolves natural-language queries to matching route paths. It distinguishes itself from sibling tools, notably by referencing eia_browse_routes for exploring the taxonomy when matches are weak.

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?

The description explicitly says when to use this tool (natural-language queries, multi-term searches) and when to use an alternative: 'Results with score > 0.72 are weak matches — try a more specific query or use eia_browse_routes to explore the taxonomy.' It also provides operational guidance like checking indexComplete before interpreting empty results.

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

Discussions

No comments yet. Be the first to start the discussion!

Related MCP Servers

  • F
    license
    -
    quality
    C
    maintenance
    A FastMCP server that wraps the U.S. Energy Information Administration Open Data API v2, enabling natural-language queries for electricity, petroleum, and other energy statistics via tools like discover_eia_route and get_eia_data.
  • F
    license
    A
    quality
    C
    maintenance
    An MCP server that exposes the U.S. Energy Information Administration (EIA) Open Data API, enabling LLMs to browse and query energy data across 17 datasets with generic, composable tools.
    4
  • A
    license
    -
    quality
    C
    maintenance
    An MCP server that wraps the U.S. Energy Information Administration's Open Data API, enabling assistants to fetch live energy data via natural language. It provides tools for querying series, browsing data routes, filtering facets, and running custom queries.
    MIT

View all MCP Servers

Try in Browser

Your Connectors

Sign in to create a connector for this server.