Skip to main content
Glama

Get Shared Setup

get_shared_setup
Read-onlyIdempotent

Reads a setup shared through a grant (grantId from list_active_setup_grants). detail 'summary' (default) returns metadata and paged item summaries (default 5, max 20; itemCount is total). detail 'full' returns metadata and item stubs without sanitizedContent; pass itemId for one item's permissions (page via permissionsOffset) and sliced sanitizedContent (contentStart, contentLength). Pass field ('title' or 'summary', or 'name'/'summary' with itemId) and valueStart to read omitted header or item text. Continuations (offset/contentStart/permissionsOffset/valueStart > 0) require snapshotId and expectedRevision from page 1. [Bearer scope: detail summary: sanitized_setup_summary; detail full: setup_snapshot:read]

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": {
      "grantId": "<grantId>"
    },
    "name": "get_shared_setup"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldNoRead an omitted scalar text field ('title' or 'summary' on snapshot; 'name' or 'summary' with itemId).
limitNoItems per page for list reads (default 5, clamped [1, 20]).
detailNoDefault 'summary'.
itemIdNodetail 'full' only. Read one item's fenced permissions and sliced sanitizedContent.
offsetNoNon-negative paging offset (max 10000). Requires snapshotId and expectedRevision when > 0.
grantIdYes
snapshotIdNoOmit on page 1 for latest. detail 'summary' always reads the latest summary-reachable snapshot (passing snapshotId only pins continuations); detail 'full' can target any snapshot covered by the grant. Required on continuation pages with expectedRevision.
valueStartNofield mode only. Non-negative UTF-16 offset in served value. Requires snapshotId and expectedRevision when > 0.
contentStartNodetail 'full' with itemId only. Non-negative UTF-16 offset in served sanitizedContent. Requires snapshotId and expectedRevision when > 0.
contentLengthNodetail 'full' with itemId only. Requested chunk size in served UTF-16 chars (bounded inside the 50,000-char hard cap).
expectedRevisionNoSnapshot revision from page 1; required for continuation pages.
permissionsOffsetNodetail 'full' with itemId only. Non-negative offset into permissions (max 10000). Requires snapshotId and expectedRevision when > 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description adds substantive context beyond that: the bearer scopes required per detail mode, the paging caps (default 5, max 20; 50,000-char hard cap), and the strict continuation contract requiring snapshotId and expectedRevision. These are exactly the constraints an agent must know to avoid failed calls.

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 purpose and then packed with mode-specific rules; nearly every clause carries operative information. It is, however, a dense run-on with heavy parenthetical nesting that slows parsing of the continuation rules.

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?

For a 12-parameter tool with no output schema, the description does the heavy lifting: it describes what each mode returns (metadata, paged item summaries, itemCount totals, item stubs without sanitizedContent, sliced content), plus scopes and continuation prerequisites. The main gap is error/failure behavior when expectedRevision is stale.

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?

Schema coverage is already 92%, so the schema carries most per-parameter meaning; nonetheless the description adds cross-parameter semantics the schema cannot, such as field/valueStart pairing by mode, itemId gating on detail='full', and which offsets trigger the continuation requirement. A few interactions (e.g., pinning behavior when snapshotId is supplied with detail='summary') are stated but terse.

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 and resource ('Reads a setup shared through a grant') and immediately grounds it with the source of the required identifier ('grantId from list_active_setup_grants'), which separates it from sibling reads like get_my_setup_snapshot or get_setup_share_status.

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?

Gives clear conditional routing: 'summary' is the default, 'full' is needed for item stubs and per-item permissions/content, and itemId is 'detail full only'. It also states the prerequisite for continuations (snapshotId + expectedRevision from page 1). It stops short of explicitly excluding scenarios where a sibling (e.g., get_my_setup_snapshot) would be the better call.

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