Skip to main content
Glama

get_entities

Reads up to 50 entities and lists in one version in one batch call, returning results in item order and isolating errors so one failed read does not block the rest.

Instructions

Batch of reads in one call: up to 50 entities and lists in one version. To read more than two entities, use this, not get_entity and list_entities one by one: one round trip instead of N, reads run in parallel. An item is like get_entity {resource, id, parentIds, expand, pick}; ids: [..] instead of id reads several entities of one resource with shared expand and pick; with neither id nor ids, a list, like list_entities (full, pick). The response follows item order; if one fails to read, it gets an error and the rest are returned. pick keeps the response small: ["requests.data.url", "requests.data.script"] instead of the whole entity. After review_version pass its reviewId: entities are served from the review snapshot, without the API.

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": {
      "appId": "<appId>",
      "items": "<items>"
    },
    "name": "get_entities"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdYesApp ID
itemsYesWhat to read: [{resource, id | ids, parentIds, expand, pick, full}]
reviewIdNoreviewId from review_version: read from its snapshot
versionIdNoVersion ID, shared by all items

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses parallel execution, response ordering following item order, partial-failure semantics ('if one fails to read, it gets an error and the rest are returned'), and that a reviewId reads from the snapshot without hitting the API. These are exactly the behavioral traits an agent cannot get from structured fields.

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 purpose and routing rule, and every clause carries information — no filler. It is dense, semicolon-chained prose that takes effort to parse, which keeps it from a 5.

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 nested batch-read tool with no output schema, the description covers the item semantics, the size cap, return ordering, per-item error behavior, and the reviewId snapshot mode. Nothing an agent needs to call it correctly appears to be 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?

Schema coverage is 100%, so baseline is 3, but the description adds real semantics the schema does not state: the id/ids/neither branching determines whether the item is a single read, a multi-id read, or a list, and the pick example shows a concrete path syntax. It stops short of explaining parentIds or versionId interaction beyond the schema's own text.

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 — batch reads of up to 50 entities and lists in one version — and explicitly distinguishes itself from both get_entity and list_entities. An agent can identify the tool's role without opening 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 Guidelines5/5

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

Gives an explicit decision rule: 'To read more than two entities, use this, not get_entity and list_entities one by one,' with the rationale (one round trip instead of N). It also explains the id vs ids vs neither branching, which tells the agent which item form to choose.

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