Skip to main content
Glama
whodb-cli

whodb-cli

Official
by clidey

whodb_platform_agent_session

Read-onlyIdempotent

Read a signed-in user's AI session and persisted messages by session ID, with optional workspace targeting for host, organization, or project without changing defaults.

Instructions

Read the signed-in user's AI session and persisted messages. Artifacts can be inspected separately. Accepts workspace {host, org, project} for per-call targeting without changing defaults.

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": {
      "session_id": "<session_id>"
    },
    "name": "whodb_platform_agent_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoOptional top-level output projection
workspaceNoOptional target for this call only. Omit to use the session default set by whodb_platform_session_use, then process/saved defaults. Discover targets with whodb_platform_hosts, whodb_platform_orgs and whodb_platform_projects.
session_idYesOwned AI session id; required for agent_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.139.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/openWorld, but the description adds useful context beyond them: it discloses the ownership boundary (only the signed-in user's session), that artifacts live elsewhere, and that per-call workspace targeting does not mutate session defaults. It does not address missing/forbidden session handling.

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 short sentences, front-loaded with the core read action, followed by the artifact boundary and the targeting caveat. No filler, though the workspace sentence is a near-restatement of the schema's own wording.

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 at least characterizes the return as the session plus persisted messages, and it explains scoping and defaults behavior, which are the main ambiguities for this call. Remaining gaps (fields projection, behavior on unknown session_id, message volume) are modest for a simple read tool.

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%, so the schema already documents session_id, workspace, and fields thoroughly. The description only echoes the workspace {host, org, project} shape and the non-persistence of targeting, adding little beyond structured data; the fields projection parameter is not mentioned at all.

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 description uses a specific verb and resource ('Read the signed-in user's AI session and persisted messages') and scopes ownership to the signed-in user. It does not explicitly contrast with the sibling whodb_platform_agent_sessions (the listing variant), so the singular-vs-list distinction must be inferred from the required session_id in the schema.

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?

'Artifacts can be inspected separately' redirects one adjacent need, and 'without changing defaults' implies that whodb_platform_session_use is the tool that does change defaults. However, no sibling is named, and there is no explicit statement of when to prefer this over whodb_platform_agent_sessions or how to obtain a session_id.

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

Deploy Server

Other Tools