Skip to main content
Glama

read_derived_property

Read a confirmed derived property for one object by primary key or for a page of visible objects; unavailable values return status and reason.

Instructions

读一个已确认的派生属性(例如 客户的已取消订单数):给 key(主键列 → 取值)就是那一个对象的值,不给就是一页对象的值。派生属性没确认或现在算不出来时不给值,错误里说它的状态和原因。只算令牌的主人看得到的行。只是读,可以重试。

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": {
      "type": "<type>",
      "name": "<name>"
    },
    "name": "read_derived_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo主键列 → 取值,例如 {"客户编号": "KH022"};不写就给一页
nameYes派生属性的英文名,来自 describe_definitions
pageNo第几页,从 1 起
typeYes对象类型的英文名,来自 describe_definitions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and mostly succeeds: it discloses permission scoping (只算令牌的主人看得到的行), the empty-result contract (no value when unconfirmed/uncomputable, with status and reason in the error), and that the operation is a pure read and retry-safe. It does not quantify computation cost, latency, or page size, which are the remaining unknowns for a derived-value tool.

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?

Four short, front-loaded clauses with no filler: the primary behavior leads, then conditional behavior, then failure semantics, then permissions and retryability. Slight overlap with the schema's own wording on key/omission is the only redundancy.

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 read tool with a nested key object, no output schema, and no annotations, the description covers the essentials: result shape in both modes, empty/error behavior, visibility scoping, and idempotency. It leaves page size and the exact return envelope unstated, which is a minor gap given there is no output schema to fall back on.

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% and the schema already explains key, page, type, and name with an example, so the description's restatement of the key-present vs key-absent behavior largely duplicates it. The description reinforces the semantic consequence of omitting key (one page of objects) but adds no new format or constraint details, so the baseline 3 is appropriate.

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 (读一个派生属性) and immediately binds it to a concrete example (客户的已取消订单数). It also spells out the two invocation modes — with key returns one object's value, without key returns a page — so an agent can predict the result shape before opening the schema, and the '已确认' qualifier implicitly routes agents to confirm_derived for unconfirmed properties.

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 a clear precondition (the property must already be confirmed) and a failure condition (unconfirmed or currently uncomputable → no value), plus the note that name/type come from describe_definitions. It stops short of naming an alternative sibling explicitly for the unconfirmed case, which keeps it off a 5.

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