Skip to main content
Glama

describe_definitions

Retrieve confirmed business definitions for object types, attributes, relations, views, derived attributes, and refusal rules, including who confirmed them and the data version; optionally filter by type.

Instructions

团队已经确认的业务定义:对象类型(属性、主键、代码的含义)、关系、视图(取哪些行)、派生属性(怎么算),每条带谁确认、确认于哪个数据版本;还有拒答规则 rules。属性只有 column 和 type;name 只在和列名不同时给,code 只在是代码列时给。定义多时给 types,只取这几个类型和连着它们的关系、视图、派生属性。只是读,可以重试。只有已确认的、令牌的主人看得到的;没有数据行,没有全部数据的行数。不在这里的东西没有定义:不要猜,照 rules 拒答。

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

Input Schema

NameRequiredDescriptionDefault
typesNo只要这几个类型(英文名或中文名),不写就是全部

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and largely meets it: it declares the operation read-only, says it is safe to retry, limits results to confirmed definitions visible to the token's owner, and explicitly states what is NOT returned (no data rows, no total row counts). The remaining gap is that permission-failure modes and result-size behavior are only hinted at via the types advice.

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 resource and its contents, then filtering, then behavioral constraints and the refusal rule — a sensible order for an agent reading top-down. It is dense but nearly every clause carries information; the attribute shape note (column/type, name only when it differs, code only for code columns) earns its place because there is no output schema.

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 no annotations and no output schema, the description supplies the return shape conventions, scope limits, negative guarantees and refusal behavior, which is close to sufficient. It does not address result volume or pagination beyond the hint to narrow by types, which leaves a modest gap for a tool over a potentially large definition set.

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% and the schema already explains that types accepts English or Chinese names and defaults to all, so the baseline is 3. The description earns above that by specifying the closure semantics: filtering to types also returns the relations, views and derived attributes connected to those types, which the schema does not say and which materially changes how an agent would use the filter.

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 sentence names the resource precisely and enumerates the returned content: object types (attributes, primary keys, code meanings), relations, views (which rows), derived attributes (how computed), plus refusal rules, each with confirmer and data version. This is far more than a restated name and lets an agent tell it apart from narrow siblings like list_objects or list_rules. It stops short of 5 because no sibling is explicitly named as the alternative for a narrower query.

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?

It gives a conditional instruction for the one parameter ("定义多时给 types" — pass types when the definition set is large) and, more importantly, an explicit when-not guide: anything absent from the response is undefined, so do not guess and instead refuse per rules. That exclusion is genuine routing guidance, but it never points to a named sibling tool for cases this tool does not cover.

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