Skip to main content
Glama
matt-coppinger

Horizon MCP Server

horizon_refresh_token

Exchange a refresh token for a new Horizon access token to keep your session active without re-entering credentials. Use this before the current token expires.

Instructions

Exchange a refresh token for a new access token.

Use this before the current access token expires (~8 hours) to maintain an active session without re-entering credentials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_urlNoHorizon server URL. Defaults to HORIZON_BASE_URL env var.
refresh_tokenYesRefresh token obtained from horizon_login

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. It discloses the exchange action and the time-based purpose, but does not mention security implications, error conditions, or whether the old token is invalidated. This is adequate but not rich.

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 with no wasted words. The primary action is front-loaded, followed by the usage condition. Highly efficient.

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 description covers the main use case and condition. An output schema exists, so return values need not be explained. It could mention that the refresh token comes from horizon_login, but the schema already states this, making the description sufficient.

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% for both parameters (base_url and refresh_token), so the schema already documents them. The description adds no extra parameter semantics beyond what is in the schema.

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 a specific action ('Exchange a refresh token for a new access token') with a clear resource (refresh token -> access token). It is distinct from sibling tools like horizon_login (initial authentication) and horizon_logout (session termination).

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?

Explicitly states when to use: 'before the current access token expires (~8 hours) to maintain an active session without re-entering credentials.' This gives clear context, though it does not name alternatives or explicitly state when not to use it.

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