Skip to main content
Glama

独行录 / opcmenu

一段话把自己归位到产业链

set_my_chain_position
Idempotent

【需要登录】【何时用】全平台唯一一个「自由文本即写入」的接口,正是 agent 的主场。 用户在对话里刚说完自己在干什么,你把那段话整理成一句 describe 直接提交,LLM 据此推出链位并把他并进链网。App 里这一步要用户自己打开定位页、切到产业链、想一段话再打字。

【组合链】提交成功 → get_chain_anchor 立刻能看到他新的上下游环 → 从环里挑人 get_creator → start_conversation。不传 subjectType/subjectId 就是给「我」归位;给产品归位就传 subjectType=product + 产品 id(必须是我自己的产品,先 get_my_products 拿 id)。

【怎么写 describe】把用户原话整理成「给谁做什么、用什么做、做完交付什么」,5~500 字。别替他编——他没说的上下游不许你加。

【口径/坑】 · 你这段描述会作为 declaredContext 落库并钉住链位(后续系统自动重推必须保留它,不会把它挤掉);但返回体 profile.source 仍然是 'inferred'——那说的是画像的生成方式(LLM 推的),不是失败,别据此重提一次(那是一次真金白银的重推)。 · 失败分支返回体自带出口,照着念:position_unclear(看不出你在干什么,要补「给谁做什么」,别重试)/ position_relations_unclear(看得出做什么、看不出上下游是谁,要追问「活儿从谁手上接、做完交给谁用」,别重试)/ chain_source_changed(你刚改过资料或产品,原样重提一次即可)/ llm_unavailable(判链位的模型不在,过几分钟再试,别说成描述有问题)。 · 这是一次完整的 LLM 重推,慢且花钱。同一段描述重复提交会被本工具去重(返回 deduped=true),别靠重复调来「催」。 · 归位会改变他在别人产业链视图里的位置——这是对外可见的写操作,不是本地设置。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
describeYes一段自由文本:我在产业链上是干什么的(给谁做什么、用什么做、交付什么),5~500 字
subjectIdNoproduct 时必给产品 id;user 时留空即可
subjectTypeNo给谁归位:user(默认,就是我自己)| product(我的某个产品)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already signal readOnlyHint=false, idempotentHint=true, and openWorldHint=true, and the description enriches all of them: it reveals this is a slow, paid full LLM recomputation, that duplicate submits are deduped with deduped=true, that the description is stored as declaredContext and pins the chain position, that profile.source stays 'inferred' even on success, and that the operation is externally visible in other users' chain views. There is no contradiction with annotations.

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?

The description is long, but every major block earns its place: when-to-use, chained follow-up tools, describe-writing rule, and a pitfalls section covering cost, dedupe, source field, and failure branches. Bold headers and bullets make it navigable, and the front-loaded when-to-use section is exactly where an agent needs it. The app-comparison sentence is slightly redundant, keeping it one point below perfect.

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?

No output schema exists, so the description carries the full burden of explaining behavior. It covers success flow and verification via get_chain_anchor, four named failure branches with concrete follow-ups, cost/latency warning, idempotent dedupe behavior, and external side effects. For a complex LLM-backed write with no output schema, this is complete.

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

Parameters5/5

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

Schema already documents all three params at 100% coverage, and the description still adds real value: it defines the describe formula ('给谁做什么、用什么做、做完交付什么'), forbids fabricating undeclared upstream/downstream, clarifies subjectType/subjectId defaults (user when omitted), and requires product ownership via get_my_products. This goes well beyond the schema.

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 action: take the user's free-text description of what they do, submit it, and let the LLM infer a chain position and place them into the chain network. It explicitly identifies itself as the platform's only free-text-write entry point and distinguishes the default self-scope versus product-scope, so it is not confused with siblings like set_my_role_profile or get_my_positioning.

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?

Leads with an explicit 'when to use' block: right after the user says in conversation what they are doing, the agent should compose a describe and submit; it contrasts this with the manual App flow. It gives the follow-up workflow (get_chain_anchor → get_creator → start_conversation), the product-subject prerequisite (get_my_products first), and explicit don'ts: don't invent relations, don't retry on position_unclear or position_relations_unclear. This is exemplary routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources