Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Get broker token refresh status

get_broker_token_refresh_status
Read-only

Read-only token refresh status for one saved broker credential owned by the authenticated user. Use this after Schwab or Tradier OAuth snapshot runs to verify whether Node persisted rotated token material. In a reconnection conclusion, state the returned snapshotStatus and snapshotVerifiedAt separately from authorizationSavedAt and subsequentRefreshVerifiedAt, with their actual dates. A verified snapshot and a later verified token refresh each establish their own successful check; neither proves that a strategy ran. When an unchanged active schedule is evidenced, describe its next run as scheduled to attempt, with no guarantee. Authorization saved, fresh snapshot verified and a later required refresh verified are separate facts. A historical scheduled skip is not replayed by reconnecting; successful connectivity cannot guarantee the next market-day run. Returns distinct authorizationSavedAt, fresh snapshot verification status/time/error, subsequent required refresh verification time, broker metadata, refresh eligibility, tokenRotationVersion, and sanitized tokenRotationAudit fields such as lastRotatedAt, lastPurpose, and lastRotatedKeyNames. Raw broker credentials, Vault ids, runtime secret ARNs, rotation grant metadata, and secret values are never returned.

Input Schema

NameRequiredDescriptionDefault
brokerCredentialIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint, and the description adds substantially: the enumerated return facts (authorizationSavedAt, snapshot status/time/error, refresh eligibility, tokenRotationVersion, tokenRotationAudit fields) and an explicit disclosure that raw credentials, Vault ids, secret ARNs, and rotation grant metadata are never returned. That sanitization guarantee is genuinely useful behavioral context beyond the annotation bar.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded first sentence is good, but the remainder drifts into instructions for how the agent should phrase a reconnection conclusion ('state the returned ... separately from ...') rather than tool semantics, and the 'separate facts' idea is restated three times. Much of the text does not help an agent decide or invoke, violating the every-sentence-earns-its-place bar.

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?

With no output schema, the description carries the burden of describing returns and it does so thoroughly, including the distinct timestamps and the negative space of what is never returned. The only gap is the single input parameter, whose provenance and format are unaddressed.

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 0%, so brokerCredentialId is undocumented in the schema, but the description compensates partially by constraining it to 'one saved broker credential owned by the authenticated user.' It says nothing about format (UUID) or how to obtain the id, so the compensation is only partial.

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 opening sentence gives a specific verb and resource ('Read-only token refresh status for one saved broker credential') plus an ownership scope. The second sentence situates it in the Schwab/Tradier OAuth snapshot flow, which implicitly separates it from siblings like test_schwab_broker_connection, but no sibling is named explicitly.

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?

'Use this after Schwab or Tradier OAuth snapshot runs to verify whether Node persisted rotated token material' gives a clear triggering context. There are no explicit exclusions or named alternatives (e.g., nothing says use test_schwab_broker_connection instead when you want a liveness check), so it stops short of full routing guidance.

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.