Skip to main content
Glama
3DCraft

3DCraft

selection_get

Idempotent

Retrieves the active document’s current selection, including selected items, context, counts, and summaries, so agents can inspect what is selected before editing.

Instructions

Returns what is selected in the active document: what the developer clicked in the window (when this server is bridged to one) and what agents selected (select.set, select.query with then), as items {kind, name, feature} with their context (body, origin, surface or curve with its measure, drivers: the parameter or sketch constraint that sets it with the edit to make, copyOf: the pattern instance), count, summary ("3 bodies, 2 faces"), dropped (what no longer exists) and hidden (what a suppressed or rolled-back feature hides for now). Returns {"document": null} when no document is open. The same as the resource craft3d://selection.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare openWorldHint=false and idempotentHint=true, so the description carries real weight and does add value: it discloses the dual source of the selection (developer clicks when bridged to a window vs. agent-set selections), that dropped entities and hidden-by-suppression/rollback items are reported separately, and that a null document is returned rather than an error. It does not explicitly state the tool is non-mutating, though 'Returns' and the idempotent annotation make that clear enough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key fact is front-loaded, but the body is a single very long sentence with deeply nested parentheses (drivers, copyOf, the summary example, dropped, hidden) that is dense to parse. Every element is informative, yet the content would land better as a short list of the returned fields rather than one overloaded clause.

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?

There is no output schema, so the description must describe the return value and it does so thoroughly: item shape, context fields, count, summary, dropped, hidden, and the null-document edge case. It even notes equivalence to the craft3d://selection resource, which removes any doubt about what the caller receives.

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 no parameters, so there is no parameter semantics to add; baseline 4 applies. The description correctly spends its space on return semantics instead of inventing argument guidance.

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 first clause gives a specific verb and resource: 'Returns what is selected in the active document', and the rest of the sentence enumerates the exact return shape (items, count, summary, dropped, hidden). It is not tautological and an agent can tell it reads a selection rather than executing commands or inspecting documents. It stops short of a 5 because it never explicitly contrasts itself with the closest sibling, doc_inspect, leaving the agent to infer the boundary.

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: the agent is told the tool reads the current selection and that agent-made selections come from select.set / select.query with 'then'. There is no explicit 'use this when you need X, not Y' guidance against doc_inspect or the command tools, and no note on when reading the selection is preferable to re-querying the model. The no-document case is covered, which is the one explicit conditional.

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