Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

send_contact

Shares a LINE contact card to a 1:1 chat, group, or room, giving recipients a tappable card to open the contact.

Instructions

Shares a LINE contact card to a conversation immediately — the recipient sees a tappable card for contact_mid (e.g. from find_contact or get_group_members). display_name is optional (resolved from the mid when omitted). Works for 1:1/group/room. One send 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>",
      "contact_mid": "<contact_mid>"
    },
    "name": "send_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesLINE chat/group/room MID to send to, as returned by list_conversations.
contact_midYesMID of the person whose contact card to share, as returned by find_contact or get_group_members.
display_nameNoOptional display name for the card. Resolved from contact_mid when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.7.2
    • removedInput schema / properties / chatId
      Removed value: -{
      -  "description": "LINE chat/group/room MID to send to, as returned by list_conversations.",
      -  "type": "string"
      -}
    • addedInput schema / properties / chat_id
      Added value: +{
      +  "description": "LINE chat/group/room MID to send to, as returned by list_conversations.",
      +  "type": "string"
      +}
    • removedInput schema / properties / contactMid
      Removed value: -{
      -  "description": "MID of the person whose contact card to share, as returned by find_contact or get_group_members.",
      -  "type": "string"
      -}
    • addedInput schema / properties / contact_mid
      Added value: +{
      +  "description": "MID of the person whose contact card to share, as returned by find_contact or get_group_members.",
      +  "type": "string"
      +}
    • removedInput schema / properties / displayName
      Removed value: -{
      -  "description": "Optional display name for the card. Resolved from contactMid when omitted.",
      -  "type": "string"
      -}
    • addedInput schema / properties / display_name
      Added value: +{
      +  "description": "Optional display name for the card. Resolved from contact_mid when omitted.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "chatId",
      -  "contactMid"
      -]New value: +[
      +  "chat_id",
      +  "contact_mid"
      +]
  2. Addedv0.4.1
  3. Removedv0.3.0
  4. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose non-obvious behavior: delivery is immediate, the card is tappable, display_name is auto-resolved from the MID, and there is no batching ('one send per call'). It does not cover failure modes or preconditions (e.g., whether you must be friends/blocked state matters, what error occurs for an invalid MID), which leaves meaningful gaps for a mutation 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?

Four compact clauses with the action and effect front-loaded, then the optional-parameter fallback, then chat-type scope and the single-send constraint. No redundant or filler text.

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 send tool with no output schema and no annotations, the description covers purpose, scope, optional-parameter behavior, and cardinality. It is slightly thin on what the call returns and on error/precondition behavior, but nothing essential for correct invocation is missing.

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 schema already explains all three parameters, including where chat_id and contact_mid come from. The description's note that display_name is resolved from the MID when omitted largely restates the schema's own wording, so it adds little beyond the baseline.

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?

The description names a specific verb and resource ('Shares a LINE contact card to a conversation') plus a concrete outcome ('the recipient sees a tappable card'). It is immediately distinguishable from the sibling send_image/send_file/send_message tools because the payload is an existing contact's MID, not arbitrary content.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives real usage context: works in 1:1, group, and room chats, one send per call, and it points at find_contact / get_group_members as the way to obtain `contact_mid`. It stops short of explicit exclusions (e.g., 'use send_message for plain text, send_sticker for stickers'), so routing to siblings is inferable rather than stated.

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