Skip to main content
Glama

Operations log

get_operations
Read-onlyIdempotent

Retrieve a site's newest-first operation history, including automatic and manual commands, reasons, and prices, to explain why a charge occurred at a specific time.

Instructions

What the platform did to the site and why, newest first: each automatic (Ai+) and manual command with its reason and the prices at the time. Use it to explain 'why did it charge at 3am'.

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_operations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many entries to return, newest first: 1 to 100.
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. Changed2 schema fields changedv0.11.5
    • addedInput schema / properties / limit / description
      Added value: +"How many entries to return, newest first: 1 to 100."
    • 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

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive), so the description does not need to restate them. What it does add is genuinely behavioral: results are ordered newest first and the price values are historical snapshots captured at command time rather than current prices, which prevents a common misinterpretation.

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, no filler. The content statement comes first and the motivating use case second, which is the right order for an agent scanning for relevance.

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?

The tool is simple, read-only, has only two parameters, and ships an output schema, so return-value detail is unnecessary. The description covers contents, ordering, and purpose adequately; the only shortfall is that it does not clarify how far back the log goes or whether entries can be filtered beyond the limit.

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%, with limit's 1-to-100 range and newest-first ordering and site_id's vendor:station_id format both documented in the schema. The description's 'newest first' phrasing reinforces the schema but adds no new syntax or constraint information, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete resource and its contents: an operations log of every automatic (Ai+) and manual command, with its reason and the prices applicable at the time, ordered newest first. That is specific enough to separate it from siblings like get_prices or get_status, though it never explicitly contrasts itself with them.

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

Usage Guidelines3/5

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

It gives one concrete use case, 'explain why did it charge at 3am', which implies when the tool is appropriate. It offers no explicit when-not conditions and names no alternative tool for related questions, so the guidance remains illustrative rather than directive.

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