Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

leave_group

Removes the authenticated LINE account from a specified group immediately, so it loses access to the group and its history. Pass the group or room chat_id; each call leaves one group.

Instructions

Makes THIS LINE account leave a group immediately — it loses access to the group and its history. One leave per call.

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": {
      "chat_id": "<chat_id>"
    },
    "name": "leave_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesLINE group/room MID to leave, as returned by list_conversations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.7.2
    • removedInput schema / properties / chatId
      Removed value: -{
      -  "description": "LINE group/room MID to leave, as returned by list_conversations.",
      -  "type": "string"
      -}
    • addedInput schema / properties / chat_id
      Added value: +{
      +  "description": "LINE group/room MID to leave, as returned by list_conversations.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "chatId"
      -]New value: +[
      +  "chat_id"
      +]
  2. Addedv0.4.1
  3. Removedv0.3.0
  4. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the important consequence: immediate effect and loss of access to the group and its history. It stops short of stating whether the action is reversible/rejoinable, what other members experience, or what errors occur if the account is not a member.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the actor and action, with the destructive consequence stated before the batching constraint. No filler.

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 single-parameter, irreversible membership action with no annotations and no output schema, the description covers actor, effect, and call cardinality. Minor omissions remain (rejoinability, non-member error case), but nothing that would mislead an agent into calling it incorrectly.

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

Parameters3/5

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

Schema coverage is 100% and the chat_id property already explains it is a LINE group/room MID from list_conversations. The description only adds the one-call-per-group constraint, which is marginal beyond the schema. Baseline 3 is appropriate.

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?

Specific verb 'leave' plus resource 'group', scoped explicitly to 'THIS LINE account' so the agent knows whose membership is affected. It does not name the sibling that removes other people (kick_member), so the differentiation from that adjacent operation is left implicit.

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?

'One leave per call' implicitly tells the agent to iterate for multiple groups, which is useful operational guidance. There is no explicit when-to-use/when-not, no statement about prerequisites (must be a member), and no pointer to alternatives such as kick_member for removing someone else.

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