Skip to main content
Glama

Market conditions gate: regime and stress in one call

conditions_gate
Read-onlyIdempotent

What are US market conditions right now, in one small call? Returns the current Regime Card regime (Risk-On to Risk-Off) and the stress gate's overall state (Calm, Elevated or Stressed) with how many of its three components are confirmed (N of 3). Conditions only: no percentile, no per-component detail, no history. $0.002 per call in USDC on Base, Polygon or Solana (x402). The regime and the stress gate each update about once an hour while the US market is open, the first a little after 10 AM ET. The top-level asOf and status are the regime's; the stress gate carries its own. Useful when an agent checks market conditions before every action and needs the smallest answer at the lowest price.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "conditions_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
asOfYesThe trading session of the regime (YYYY-MM-DD, US Eastern): /v1/live's asOf at the same moment. The stress gate's own is stress.asOf.
recordYesThe public, hash-linked record of the daily settled regime reading: its percentile and its regime label. It covers nothing else in this response: not the stress gate, stock or coin figures, the scorecard, or a live intraday reading. The same on every response.
regimeYesThe current regime, as /v1/live gives it in reading.regime: the live reading's while the top-level status is "live", else the last settled close's.
sourceYesWhere the reading is published.
statusYesThe regime's status, as /v1/live gives it: "live" while its reading is computed during the session and still provisional, "settled" when it is the last settled close. The stress gate's own is stress.status.
stressYesThe stress gate's overall state, as /v1/stress gives it: the state, how many of its three components are confirmed, its own session and status, and when it was last computed. No component is named.
relatedYesThe other paid routes: for each, its path, the question it answers and its price per call. Each is a separate call.
disclaimerYesAlways the same sentence.
nextUpdateAtYesThe expected time of the next update to the regime or the stress gate (UTC). When one hourly update is due to both, this is the time both are expected to be in; otherwise, whichever comes first. An expectation, not a promise: it counts the scheduled updates of US trading sessions, and one can arrive a little earlier or later. A later correction to a settled reading is not counted. A recompute of the stress gate on a market holiday is not counted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / nextUpdateAt
      Added value: +{
      +  "description": "The expected time of the next update to the regime or the stress gate (UTC). When one hourly update is due to both, this is the time both are expected to be in; otherwise, whichever comes first. An expectation, not a promise: it counts the scheduled updates of US trading sessions, and one can arrive a little earlier or later. A later correction to a settled reading is not counted. A recompute of the stress gate on a market holiday is not counted.",
      +  "format": "date-time",
      +  "type": "string"
      +}
    • changedOutput schema / properties / regime / description
      Previous value: -"The current regime, as /v1/live gives it in reading.regime: the live reading's during the US session, else the last settled close's."New value: +"The current regime, as /v1/live gives it in reading.regime: the live reading's while the top-level status is \"live\", else the last settled close's."
    • changedOutput schema / required
      Previous value: -[
      -  "asOf",
      -  "status",
      -  "regime",
      -  "stress",
      -  "related",
      -  "record",
      -  "disclaimer",
      -  "source"
      -]New value: +[
      +  "asOf",
      +  "status",
      +  "regime",
      +  "stress",
      +  "nextUpdateAt",
      +  "related",
      +  "record",
      +  "disclaimer",
      +  "source"
      +]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), yet the description still adds real behavior: pricing ($0.002 per call in USDC on Base, Polygon or Solana via x402), refresh cadence (about hourly while the US market is open, first just after 10 AM ET), and the field-ownership nuance that top-level asOf/status belong to the regime while the stress gate carries its own.

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 answer, the exclusions, the price, and the cadence are all front-loaded in that order, and every sentence carries information. The opening rhetorical question is slightly gimmicky and the closing sentence restates the low-cost/small-answer pitch already implied, keeping it just short of a 5.

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?

An output schema exists, so return values need not be explained, yet the description still clarifies the asOf/status ownership ambiguity — the one thing an agent could misread. With cost, cadence, and coverage all stated, nothing needed to call this correctly is missing.

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 tool takes zero parameters, so the baseline is 4. The description usefully spends its words on what the response contains instead of on nonexistent inputs, which is the right allocation for a no-arg call.

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 states exactly what is returned — the Regime Card regime plus the stress gate's overall state and N-of-3 confirmation count — and explicitly bounds the scope with 'Conditions only: no percentile, no per-component detail, no history.' That exclusion set lets an agent separate it from the more detailed siblings without opening the schema.

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?

It gives a clear use case ('when an agent checks market conditions before every action and needs the smallest answer at the lowest price') and an implicit when-not via the no-detail/no-history exclusions. It never names a specific alternative such as stress_gate for drill-down, so the routing is inferred rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources