Skip to main content
Glama

Running strategy

get_strategy
Read-onlyIdempotent

Retrieves the current AI-written strategy for a site, including rules, lease, recent evaluations, status, and server-enforced limits; returns none or ended status with reason when applicable.

Instructions

Strategy mode on a site: the AI-written rules running now (name, rules, lease, last action, recent evaluations), status none when there has never been one, or ended with end_reason. limits is what the server enforces on every strategy.

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

Input Schema

NameRequiredDescriptionDefault
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. Changed1 schema field changedv0.11.5
    • addedInput schema / properties / site_id / description
      Added value: +"Site id from list_sites: vendor:station_id, e.g. sungrow:1445844."
  2. Addedv0.11.4

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile is covered. The description adds useful context beyond that -- the possible status values and the fact that `limits` is server-enforced on every strategy -- but it leaves terms like 'lease' unexplained and says nothing about freshness or whether the evaluation list is truncated.

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?

Two compact sentences, front-loaded with what the tool returns, and the parenthetical field list conveys a lot in few words. Slightly telegraphic phrasing ('status none when there has never been one') costs a little clarity but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (one required param, rich annotations, an output schema), and the description covers the state machine of the result. However, it spends words listing return fields the output schema already defines while omitting the main thing an agent lacks: when this read should be preferred over its start/end siblings.

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?

There is a single parameter and schema coverage is 100%; the schema already documents the vendor:station_id format and points at list_sites. The description contributes no additional meaning about site_id, which is acceptable at this coverage level but adds nothing.

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 scope: the strategy mode currently running on a site, with an enumerated payload (name, rules, lease, last action, recent evaluations). That is enough to separate it from start_strategy/end_strategy, though it never names those siblings or says it is the read counterpart to them.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use statement. The 'status none / ended with end_reason' clause implies it is the way to check whether a strategy exists, but the agent has to infer that; no alternative tool or precondition (e.g. call before end_strategy) is offered.

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