Skip to main content
Glama

Power history

get_curve
Read-onlyIdempotent

Retrieve power and SOC history for a site: 5-minute points for one local day or daily values over 7 or 30 days.

Instructions

Power and SOC history of a site: 5-minute points for one local day, or daily values over the last 7 or 30 days. Returns times (UTC), local_times, and series per channel (pv, load, battery, grid, soc). Large: summarise before quoting. For the reading right now use get_status.

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": {
      "site_id": "<site_id>"
    },
    "name": "get_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNoWith range 1d: the local calendar day, YYYY-MM-DD. Omitted = today.
rangeNo1d = 5-minute points for one local day; 7d / 30d = one value per day.1d
site_idYesSite id from list_sites: vendor:station_id, e.g. sungrow:1445844.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.11.5
    • addedInput schema / properties / day / description
      Added value: +"With range 1d: the local calendar day, YYYY-MM-DD. Omitted = today."
    • addedInput schema / properties / range / description
      Added value: +"1d = 5-minute points for one local day; 7d / 30d = one value per day."
    • addedInput schema / properties / range / enum
      Added value: +[
      +  "1d",
      +  "7d",
      +  "30d"
      +]
    • addedInput schema / properties / site_id / description
      Added value: +"Site id from list_sites: vendor:station_id, e.g. sungrow:1445844."
  2. First observedv0.9.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds non-obvious context the annotations cannot: the response size problem and the instruction to summarise rather than quote, plus the UTC versus local_times distinction. It stops short of describing pagination or limits, but with an output schema present that omission is minor.

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?

Three short sentences, front-loaded with what the tool returns and how it varies by range, followed by the size caveat and the sibling redirect. Every clause carries information; nothing is repeated from the title or schema.

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?

For a read-only history tool with full schema coverage, complete annotations, and an output schema, the description covers everything the agent still needs: granularity behavior, return shape at a high level, output volume handling, and the alternative for live data. No material gap remains.

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 description coverage is 100%, so all three parameters are already documented in the input schema, including the range enum values and site_id format. The description reinforces the range/granularity mapping and the "local day" framing but adds no syntax or edge-case detail beyond the schema. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

States a specific verb+resource ("Power and SOC history of a site") and immediately disambiguates the two granularities: 5-minute points for one local day versus daily values over 7 or 30 days. It also names the sibling tool get_status for the live reading, so an agent can distinguish it without opening schemas.

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?

Explicitly routes the agent away from this tool when a current reading is wanted ("For the reading right now use get_status") and adds an operational rule for handling the result ("Large: summarise before quoting"). Both the when-to-use and the when-not-to-use case are stated.

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