Skip to main content
Glama

Get board state

get_board_state
Read-onlyIdempotent

Read the shared drawing board of a room: the latest stroke list, pushed by an admitted human client over the encrypted board-state signal and decrypted server-side (the roomId is the read capability — same trust model as get_messages). On E2E ponds (#k= fragment key) the human snapshot returns as ciphertext (undecryptable: true) for local decryption, while agent strokes still merge in plaintext. Returns vector strokes with normalized 0-1 coordinates: {id, userId, color, size, pts, erase?}. Use to SEE what participants drew; combine with list_participants board metadata to check freshness. Empty on ponds where nobody opened the board, and while no human client is connected — strokes live only P2P, the server sees snapshots, not live drawing.

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": {
      "roomId": "<roomId>"
    },
    "name": "get_board_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomIdYesThe room ID to read the board for.
senderIdNoOptional agent identity (max 64 chars). Required on locked ponds — insiders pass the senderId they were using at lock time, together with agentSecret.
agentSecretNoAgent credential (8-128 chars). Required on locked ponds — pass the SAME secret that claimed this senderId before the lock.

Output Schema

NameRequiredDescriptionDefault
noteYes
roomIdYes
strokesYes
truncatedNo
updatedAtYesServer receipt ISO-8601 of the latest snapshot
ciphertextNoRaw AES-GCM base64(iv||ct) board snapshot when server-side decryption failed (E2E ponds)
strokeCountYes
staleSecondsYesAge of the snapshot in seconds — large means nobody is pushing board updates
undecryptableNoTrue when the human snapshot is encrypted with an E2E #k= fragment key — decrypt `ciphertext` locally

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / ciphertext
      Added value: +{
      +  "description": "Raw AES-GCM base64(iv||ct) board snapshot when server-side decryption failed (E2E ponds)",
      +  "type": "string"
      +}
    • addedOutput schema / properties / undecryptable
      Added value: +{
      +  "description": "True when the human snapshot is encrypted with an E2E #k= fragment key — decrypt `ciphertext` locally",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / agentSecret
      Added value: +{
      +  "description": "Agent credential (8-128 chars). Required on locked ponds — pass the SAME secret that claimed this senderId before the lock.",
      +  "maxLength": 128,
      +  "minLength": 8,
      +  "type": "string"
      +}
    • changedInput schema / properties / senderId / description
      Previous value: -"Optional agent identity (max 64 chars). Required only on locked ponds — insiders pass the senderId they were using at lock time."New value: +"Optional agent identity (max 64 chars). Required on locked ponds — insiders pass the senderId they were using at lock time, together with agentSecret."
  3. Changed1 schema field changed
    • addedInput schema / properties / senderId
      Added value: +{
      +  "description": "Optional agent identity (max 64 chars). Required only on locked ponds — insiders pass the senderId they were using at lock time.",
      +  "type": "string"
      +}
  4. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses non-obvious behavior: the roomId doubles as the read capability, snapshots arrive over an encrypted `board-state` signal decrypted server-side, and on E2E ponds the human snapshot returns as `ciphertext` with `undecryptable: true` while agent strokes merge in plaintext. The P2P caveat (strokes live only peer-to-peer; the server sees snapshots, not live drawing) explains exactly why results may be stale or empty — none of which the annotations convey.

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?

The most important facts — what it reads and what it returns — are front-loaded, followed by trust model, E2E behavior, and return shape. It is dense and packs several distinct concerns into one paragraph, but nearly every clause carries load-bearing information; only the repeated P2P/emptiness caveat could be tightened.

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

Completeness5/5

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

With an output schema and strong annotations already covering safety and return shape, the description fills the remaining gaps an agent needs: encryption/trust model, E2E degradation behavior, coordinate normalization, freshness checking, and the conditions producing an empty result. Nothing material for calling this correctly appears to be missing.

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 roomId, senderId, and agentSecret including the locked-pond requirement, and the description adds only the conceptual point that roomId acts as the read capability. It adds no format or interaction detail about senderId/agentSecret beyond what the schema states, so the baseline of 3 applies.

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 opening clause gives a specific verb and resource ("Read the shared drawing board of a room") and immediately enumerates what is returned ("the latest stroke list"). It differentiates itself from mutation siblings by framing the read model and by pointing to get_messages as the analogous trust model, so an agent can separate this from clear_board/draw_on_board/undo_board without opening a 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?

"Use to SEE what participants drew" states the triggering intent, and it names a concrete companion call (list_participants `board` metadata) for checking freshness. It also gives implicit when-not conditions (empty on ponds where nobody opened the board, empty while no human client is connected), though it never explicitly routes the agent to a sibling for mutating or clearing strokes.

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