Skip to main content
Glama

add_or_update_tracked_group

Add a WeChat group to projects.json or update its project mapping to keep tracked chats linked to the correct project.

Instructions

Add a WeChat group to projects.json or update its project mapping.

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": {
      "group_id": "<group_id>",
      "group_name": "<group_name>",
      "project_name": "<project_name>"
    },
    "name": "add_or_update_tracked_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNo
group_idYes
group_nameYes
project_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the persistence target (projects.json) and that the operation is an upsert, which is useful, but it says nothing about what happens to an existing mapping, whether writes are destructive or reversible, permission/file-location requirements, or error behavior.

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 well-formed sentence with the resource and the add/update duality front-loaded and no filler. It is efficient, though the brevity edges toward under-specification rather than true conciseness.

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?

An output schema exists, so return values need not be described, but for a 4-parameter mutation that writes a config file with no annotations and no schema descriptions, the definition is too thin. An agent lacks enough to know where the file lives, what 'root' means, or how conflicts are resolved.

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?

Schema description coverage is 0% across 4 parameters, so the description must compensate and largely does not. It hints that group_id/group_name identify the group and project_name is the mapping target, but the optional 'root' parameter is entirely undocumented and no format or constraint guidance is given for any field.

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 pair (add or update) and a specific resource (a WeChat group's entry in projects.json), so an agent can immediately tell this is the write-side counterpart to list_tracked_projects. It does not explicitly name or contrast itself with siblings such as discover_wechat_groups or list_tracked_projects, leaving that differentiation to inference.

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 when-to-use guidance beyond the implicit upsert semantics of 'add or update' — it never says whether the group must first be discovered via discover_wechat_groups, or when to prefer this over another tracking path. No prerequisites, ordering, or preconditions are stated.

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