Skip to main content
Glama

独行录 / opcmenu

通过顾问整理合作方案

edit_cooperation_plan_with_agent

基于用户事实起草或改草稿,不保存、公开或发送。draft保留选定purpose和targetUserId;通用不以入口对象写正文,专属只围绕target。旧稿/切用途传intent=ADAPT_PURPOSE重新整理。已选对象时传context的entryPoint、peerId和可选conversationId。返回简短回复、最多一个关键问题及有权引用的suggestedReferences;推荐不等于关联,用户确认后才加入draft.references。顾问失败时如实说明,可展示对话内修改稿,不转为保存。只有用户明确要求保存才调用保存工具,认可草稿不等于授权写入。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
draftNo
intentNoREFINE
contextNo
historyNo
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / context / properties / focusNeedId
      Added value: +{
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / context / properties / needId
      Added value: +{
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / context / properties / productId
      Added value: +{
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / draft / properties / derivedFromId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 100,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / draft / properties / contentFormat
      Added value: +{
      +  "default": "plain",
      +  "enum": [
      +    "plain",
      +    "markdown"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / draft / properties / sectionTitles
      Added value: +{
      +  "additionalProperties": false,
      +  "default": {},
      +  "properties": {
      +    "advantages": {
      +      "$ref": "#/properties/draft/properties/sectionTitles/properties/description"
      +    },
      +    "cooperationModes": {
      +      "$ref": "#/properties/draft/properties/sectionTitles/properties/description"
      +    },
      +    "description": {
      +      "type": "string"
      +    },
      +    "nextSteps": {
      +      "$ref": "#/properties/draft/properties/sectionTitles/properties/description"
      +    },
      +    "partnerBenefits": {
      +      "$ref": "#/properties/draft/properties/sectionTitles/properties/description"
      +    },
      +    "partnerProfile": {
      +      "$ref": "#/properties/draft/properties/sectionTitles/properties/description"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Changed5 schema fields changed
    • addedInput schema / properties / draft / properties / expectedUpdatedAt
      Added value: +{
      +  "format": "date-time",
      +  "type": "string"
      +}
    • addedInput schema / properties / draft / properties / purpose
      Added value: +{
      +  "default": "LEGACY",
      +  "enum": [
      +    "GENERAL",
      +    "TARGETED",
      +    "LEGACY"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / draft / properties / purposeReviewConfirmed
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / draft / properties / targetUserId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 100,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / intent
      Added value: +{
      +  "default": "REFINE",
      +  "enum": [
      +    "REFINE",
      +    "ADAPT_PURPOSE"
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / context
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "conversationId": {
      +      "maxLength": 100,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "entryPoint": {
      +      "enum": [
      +        "profile",
      +        "chat",
      +        "library",
      +        "edit",
      +        "import"
      +      ],
      +      "type": "string"
      +    },
      +    "peerId": {
      +      "maxLength": 100,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "entryPoint"
      +  ],
      +  "type": "object"
      +}
  6. Added

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the reply shape (brief reply, at most one key question, permission-scoped suggestedReferences), the failure behavior ('顾问失败时如实说明'), and the consent boundary that a recommendation is not an association and approving a draft is not authorizing a write. Slight tension with readOnlyHint=false, but that hint plausibly covers non-idempotent in-session draft editing plus an LLM call, while the description clarifies the persistence boundary rather than denying it.

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?

Dense but front-loaded with the most consequential constraint (no save/publish/send) before the conditional routing rules. Every clause carries a distinct rule; the only cost is run-on phrasing that bundles several conditions into single sentences.

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 complex, nested-schema, open-world advisor with no output schema, the description supplies the missing return contract (reply, one question, suggestedReferences) and the workflow/gating rules the agent needs. Some nested draft-field behavior remains undocumented, but nothing that would cause a plainly wrong call is omitted.

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 description coverage is 0%, so the description must carry the semantics, and it does for the fields that drive correct invocation: intent and its ADAPT_PURPOSE value, the relevant context fields, and how suggestedReferences relate to draft.references after confirmation, plus which draft fields (purpose, targetUserId) are retained. It leaves other context keys (needId, productId, focusNeedId) and most draft fields unaddressed, so it compensates substantially but not completely.

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 precise verb and resource: it drafts or revises a cooperation-plan draft from user facts, and explicitly scopes the operation as non-persistent ('不保存、公开或发送'). It also differentiates itself from the persistence sibling ('只有用户明确要求保存才调用保存工具'), so an agent can distinguish this from save_cooperation_plan without opening either schema.

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?

Gives concrete routing rules: pass intent=ADAPT_PURPOSE when working from an old draft or switching purpose, pass context.entryPoint/peerId/conversationId when an object is already selected, and defer to the save tool only on an explicit user save request. When-to-use, when-to-switch, and the alternative tool are all named rather than inferred.

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