Skip to main content
Glama

keepalive_session

Extend an already-settled avatar session's timeout (11 minutes) and queued item retention (10 minutes) without synthesizing or speaking any text. Only available after at least one utterance payment has already succeeded in the session. If the extension payment fails, an extension error is returned without disconnecting the active WebSocket session.

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": {
      "uuid": "<uuid>",
      "signed_tx": "<signed_tx>"
    },
    "name": "keepalive_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID v4 session identifier of an already-settled session
signed_txYesPre-authorized Solana signed transaction (Base64 or Base58) for the keepalive fee

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the prior-payment prerequisite, that a fee is charged via a pre-authorized signed transaction, and that a failed extension payment returns an error while leaving the WebSocket connected. It does not say whether the extension resets or adds to the existing expiry, nor whether repeated calls are permitted.

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?

Three sentences, front-loaded with the action and its durations, then the precondition, then failure behavior — no filler. Slightly dense phrasing ("extension payment fails, an extension error is returned") but every sentence carries information an agent needs.

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?

For a two-parameter, non-destructive-looking session operation with no output schema, the definition covers the precondition, the payment mechanism, and error semantics. What is missing is the post-call state — what the new expiry becomes and what the response contains — but the core call path is adequately specified.

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 coverage is 100%, so the schema already documents both parameters, including the UUID v4 session identifier and the signed transaction format. The description reinforces that the session must be already settled and that the transaction pays the keepalive fee, but adds no format or constraint detail beyond 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 gives a specific verb and resource — extending an already-settled avatar session's timeout and queued-item retention — with concrete durations (11 minutes, 10 minutes). It also explicitly negates the sibling's behavior ("without synthesizing or speaking any text"), so an agent can separate it from speak_avatar without opening either 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 states a hard precondition: only usable after at least one utterance payment has already succeeded in the session, which tells the agent when the call is legal. It does not name an alternative tool or describe the fallback path when the precondition is unmet, so it falls short of explicit when-not 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.

Resources