Skip to main content
Glama

relation_get

Retrieve the current value of a relationship or emotion, including the latest version-chain entry. Use it to check up-to-date state by session, subject, and key.

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_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
scopeNosession
sessionIdYes
subjectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. "读" implies read-only, but the description does not say what happens when no entry exists for the key; how the session and identity scopes behave differently; or whether the read affects the version chain. For a tool with no annotation coverage, this leaves a meaningful gap.

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 padding, and the key scoping constraint is in parentheses up front. It is efficient, though brevity shades into under-specification 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?

There is no structured help: no annotations, no output schema, and zero parameter documentation. The description should at minimum define the meaning of the scope options and the triple (sessionId, subjectId, key), but it does not, so it is insufficiently complete for a 4-parameter tool in this crowded namespace.

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

Parameters1/5

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

Schema coverage is 0% across 4 parameters, and the description discusses none of them. sessionId, subjectId, key, and especially the scope enum ("session" vs "identity", default "session") are entirely undocumented, and that distinction is the one thing an agent cannot guess.

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 ("读一条关系/情绪的当前值") and adds a scoping detail: it returns the latest entry in the version chain. That squarely separates it from relation_history and relation_list, which are the most plausible confusions in this namespace.

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

Usage Guidelines3/5

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

It never explicitly names an alternative or states when not to use it. The scope note, "当前值…版本链里的最新一条", implies that you should use relation_history if you need older versions and relation_get if you need only the current version, but the agent must infer that comparison.

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