Skip to main content
Glama

Solana latest slot

solana_latest_slot
Read-onlyIdempotent

Latest finalized Solana slot and its block time. When to use: To check how fresh the finalized view of Solana is, or to anchor a read to a slot. Prefer another tool: Not a tip-of-chain feed: it is finalized, not processed or confirmed, and it is cached for 2 seconds. Example: solana_latest_slot {} Paid: 0.01452 USDC or 0.0121 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.0005 EUR-denominated units (approx 2000 calls per bundle) or 0.0006 USD-denominated units (approx 1366 calls per bundle).

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": "solana_latest_slot"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$defs": {
      -    "MetaSolana": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "age_seconds": {
      -          "description": "Age of the data at response time",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "as_of": {
      -          "description": "When the data was read from Solana",
      -          "format": "date-time",
      -          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -          "type": "string"
      -        },
      -        "cache": {
      -          "enum": [
      -            "hit",
      -            "miss",
      -            "stale"
      -          ],
      -          "type": "string"
      -        },
      -        "commitment": {
      -          "const": "finalized",
      -          "description": "Every read is at finalized commitment",
      -          "type": "string"
      -        },
      -        "slot": {
      -          "description": "Context slot of the finalized read",
      -          "maximum": 9007199254740991,
      -          "minimum": -9007199254740991,
      -          "type": "integer"
      -        },
      -        "stale": {
      -          "description": "True when served past its fresh TTL (stale-on-error)",
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "slot",
      -        "commitment",
      -        "as_of",
      -        "age_seconds",
      -        "cache",
      -        "stale"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": false,
      -  "properties": {
      -    "block_time": {
      -      "anyOf": [
      -        {
      -          "format": "date-time",
      -          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "Block time of that slot; null when unavailable"
      -    },
      -    "meta": {
      -      "$ref": "#/$defs/MetaSolana"
      -    },
      -    "slot": {
      -      "description": "Latest finalized slot",
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    }
      -  },
      -  "required": [
      -    "slot",
      -    "block_time",
      -    "meta"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive semantics, yet the description still adds real behavior: the data is finalized rather than processed/confirmed, and responses are cached for 2 seconds. Cost and prepaid debit terms are also disclosed, though the per-bundle arithmetic is boilerplate rather than decision-relevant.

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

Conciseness3/5

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

The operational content is front-loaded and tight, but roughly half the text is a pricing/credits boilerplate block with exact figures for two currencies and two prepaid denominations. That material is uniform across the catalog and does not help an agent decide or invoke.

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 correctly carries the return burden by naming both returned values (slot and block time). For a zero-argument read tool with annotations covering the safety profile, the remaining need is small; only the 2-second cache staleness bound is given without any indication of how to force freshness.

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?

There are zero parameters, so the baseline is 4. The example call 'solana_latest_slot {}' correctly signals that no arguments are accepted or required.

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 first sentence names a specific resource and scope: 'Latest finalized Solana slot and its block time.' The finality qualifier ('finalized') alone distinguishes it from any tip-of-chain or processed-slot reading an agent might assume.

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 an explicit 'When to use' (checking freshness of the finalized view, anchoring a read to a slot) and an explicit when-not ('Not a tip-of-chain feed: it is finalized, not processed or confirmed'). The only gap is that it does not name the sibling to use for tip-of-chain data, leaving the agent to search for it.

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