Skip to content

[Capability ledger selection 1/3] Date-range price history tool (GET /v1/prices/historical, GET /v1/prices) #123

Description

@karlwaldman

Why this was selected

Ranked by 30-day production demand (api_requests, window ending 2026-09-13) among REST workflows the MCP server does not expose. Population: authenticated accounts with at least one successful call. Excluded: internal-service, admin, internal-domain and smoke accounts; accounts younger than the window; and catalogue sweepers (25 or more distinct method+path keys). The query and the account-level numbers are in the #77 PR description and in the private evidence Karl holds; this public issue carries only the ranking.

This is the largest unexposed workflow by a wide margin, both in accounts and in repeat use across two or more days. Today opa_get_history only reaches the fixed windows past_day|week|month|year, so an agent cannot ask for "Brent from 2025-01-01 to 2025-06-30" or page through a long series.

Scope (ledger rows)

  • GET /v1/prices/historical
  • GET /v1/prices

Either extend opa_get_history with start_date/end_date/interval and pagination, or add a sibling tool. Decide in the PR, with bounded page size and an explicit truncation notice rather than a silent partial answer (#113).

Acceptance criteria (from #77)

Part of #77.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions