Skip to main content
Glama

ParCAD

Read the open editor

get_session
Read-only

Read the live session: which project is open in the parcad window and the script as it currently stands in the editor, including anything the user has typed since you last looked. Call this before editing — the on-screen script may differ from the file on disk, and editing from a stale copy silently reverts the user's work. name is null until something is opened; revision increases with every change. The editor pushes its document a moment after typing stops, so the very last keystrokes can lag by about half a second.

viewers is what each open window is actually drawing, as the window reported it: the revision it last evaluated, whether that built, the error if not, and the volume_mm3 it measured. A window below the session's revision has not caught up; one with built: false is still drawing an older part beside that error. An empty list means no window is open, so nobody is looking. A viewer over 30 seconds old is marked stale and is not evidence the user is looking at anything; one silent for 300 seconds is left out.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
nameYes
originYes
scriptYes
viewersYes
revisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, non-destructive, non-open-world, so the safety bar is covered; the description goes well beyond by disclosing the ~half-second editor push lag, null `name` before anything is opened, monotonic `revision`, and the staleness thresholds (30s marked `stale`, 300s omitted) that determine whether viewer data counts as evidence.

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?

Front-loaded with the core action and the pre-edit warning, then organized into a second paragraph on `viewers` semantics. It is longer than most, and some of the return-field exposition duplicates the output schema, but nearly every sentence carries decision-relevant detail.

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?

For a zero-parameter read tool with a live-state subject, the description covers the two things an agent could get wrong: editing from a stale disk copy and misreading viewer state as user presence. Combined with the output schema and annotations, nothing material is missing.

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?

The tool takes zero parameters, so the baseline is 4; there is no argument syntax to explain. The description instead attributes meaning to the returned `name` and `revision` fields, which is extra value even though an output schema exists.

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?

States a specific verb+resource: reads the live session, naming both what is open in the parcad window and the script as it currently stands in the editor. It explicitly distinguishes itself from reading a file on disk ('the on-screen script may differ from the file on disk'), which separates it from siblings like read_project.

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

Usage Guidelines5/5

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

Gives an explicit call condition — 'Call this before editing' — and a concrete consequence for skipping it ('editing from a stale copy silently reverts the user's work'). That is a clear when-to-use rule with a stated cost, not merely implied usage.

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.