Skip to main content
Glama

relation_history

Retrieve a relationship's version chain by session, subject, and key to see who changed what and when.

Instructions

查一条关系的版本链(谁在什么时候把它改成了什么)。

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": {
      "sessionId": "<sessionId>",
      "subjectId": "<subjectId>",
      "key": "<key>"
    },
    "name": "relation_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
limitNo
sessionIdYes
subjectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the payload semantics — who, when, and what value — which is genuine value, but it says nothing about ordering, whether the chain is truncated by the limit, permission scope tied to sessionId, or read-only guarantees.

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?

A single front-loaded sentence with no wasted wording; the core purpose lands immediately. It is thin rather than padded, so brevity is not the problem here.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool requiring three identifiers plus a bounded limit, with no annotations and no output schema, the description is under-specified. An agent can guess the intent but cannot confirm parameter semantics, result ordering, or truncation behavior before calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Four parameters with 0% schema description coverage, and the description names or explains none of them. The meaning of sessionId, subjectId, and key in the relation model is left to inference, and limit (1-100, no default in the schema) is entirely undocumented in both places.

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 description states a specific verb and resource — querying a relation's version chain — and the parenthetical (who changed it, when, to what) pins down the record shape. It implicitly separates itself from relation_get (current value) by emphasizing the version chain, though it never names the sibling outright.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not guidance and no mention of alternatives such as relation_get for the current value or relation_list for enumeration. The audit/history intent is only inferable from the phrase '版本链'.

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