Skip to main content
Glama

FarmDash Agent OS

session_heartbeat

Idempotent

Keep an agent session alive. Extends expiry by 24h.

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": {
      "sessionId": "<sessionId>",
      "agentAddress": "<agentAddress>",
      "sessionToken": "<sessionToken>"
    },
    "name": "session_heartbeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYes
agentAddressYes
sessionTokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds the useful concrete fact that expiry is extended by exactly 24h, but says nothing about what happens on an expired session, invalid token, or repeat calls beyond the idempotency hint.

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, front-loaded with the action and followed by the precise quantitative effect. No filler and nothing redundant — the second sentence earns its place by adding the 24h detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter, required-auth mutation tool with zero schema descriptions and no output schema, the description is thin. It omits parameter meaning, failure behavior for expired or invalid sessions, and whether the call returns the new expiry time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for three required parameters (sessionId, agentAddress, sessionToken), so the description carries the burden and largely fails: it never mentions the token or address. Only 'agent session' loosely hints at sessionId/agentAddress; the authentication role of sessionToken is unexplained.

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?

States a specific verb and resource: 'Keep an agent session alive' with the concrete effect 'Extends expiry by 24h'. It is clearly distinguishable from create_session, grant_session_key and revoke_session_key, though it never names a sibling to contrast with explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied — an agent can infer it should call this to prevent session expiry, but there is no guidance on how often to call, whether it works after expiry, or how it relates to create_session. No explicit alternatives or exclusions are given.

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