Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

add_contact

Adds people to your LINE friends by MID, LINE ID, or phone numbers, with immediate side effects. Use search_contact when you only need to look someone up.

Instructions

Explicitly adds people to your LINE friends by MID, LINE ID (userid), or phone number(s). This has a side effect — everyone found is added immediately. Use search_contact when you only want to look someone up.

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": {
      "by": "<by>",
      "value": "<value>"
    },
    "name": "add_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYesIdentifier type to add by.
valueYesMID or LINE ID as a string; phone numbers as a non-empty string array.
referenceNoOptional JSON breadcrumb recorded by LINE.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.6

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the critical trait: it is an immediate, irreversible mutation ('everyone found is added immediately'). It does not address partial-match behavior across multiple phone numbers, permission failures, or what the call returns, which is a meaningful remaining gap for an unannotated write tool.

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 sentences, zero filler. The action and its accepted identifiers lead, and the side-effect warning plus the alternative follow in the right priority order.

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 three-parameter mutation with no annotations and no output schema, the description covers what the tool does, that it is immediate, and when not to use it. It leaves unanswered the failure and multi-match cases and the shape of the result, so it is strong but not fully self-sufficient.

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 description coverage is 100%, so the enum values and the string-vs-array shape are already documented. The description adds only the mapping of 'LINE ID (`userid`)' to the enum value and the plural 'number(s)' hint; it does not explain the `reference` breadcrumb or how `by` constrains the accepted form of `value`.

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 verb and resource ('adds people to your LINE friends') and enumerates the accepted identifier types (MID, LINE ID/userid, phone numbers). It is immediately distinguishable from the lookup sibling search_contact, which is named explicitly.

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 an explicit when-not condition with the alternative: 'Use search_contact when you only want to look someone up.' That single clause tells an agent when to choose the read path instead of the write path, which is the main selection risk for this tool.

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