Skip to main content
Glama

ラジ株ナビ (Radikabunavi) - Japanese stock data from EDINET/TDnet

監視リストに追加

add_to_watchlist
Idempotent

監視リストに銘柄を追加します。 監視リストの銘柄は、お気に入り(ポートフォリオ。category: favorite)と監視(category: watching)に分かれます。 お気に入り(ポートフォリオ)は、保有などを自分で管理する銘柄で、株数(shares)・取得単価(acquisitionPrice・円)・目標利回り(targetYield・%)を任意で持てます。株数を入れれば保有(holding: true)として扱います。メモは付けられません。 目標利回りを入れると、get_watchlist が目標の株価(targetPrice・円以下)を返します。目標の株価 = 会社予想の年間配当 ÷ 目標利回り(今の株価は使いません)。増配・減配で自動で動きます。 「ポートフォリオに入れて」「お気に入りに入れて」という依頼は category: favorite にあたります。 監視は、気になる銘柄です。メモを付けられます。分類を省略すると監視になります。 同じ銘柄をお気に入りと監視の両方に入れられます(その場合は分類ごとに別の項目です)。

例: 「トヨタをお気に入りに100株・取得単価2,850円で入れて」は add_to_watchlist({codes: ['7203'], category: 'favorite', shares: 100, acquisitionPrice: 2850})。 株数・取得単価は1銘柄ずつ指定します(codes が1件のときだけ)。

監視のメモ(note)には、その銘柄で何を気にしているかを書いておけます。 登録した銘柄は get_watchlist で、メモ・登録日・前回確認日と一緒に一覧できます。 その観点で何が起きたかは、get_timely_disclosures / get_large_holdings / get_earnings_forecast などで確認できます。

監視の登録数には上限があります(現在の上限は get_watchlist の limit で確認できます)。お気に入り(ポートフォリオ)は件数の上限がありません。 保存容量(1利用者あたり約900KB)を超える分は rejectedStorageFull に入ります。 応答の count は追加後の合計(お気に入り+監視。totalCount と同じ)で、favoriteCount・watchingCount が内訳です。上限の対象は watchingCount(監視)だけです。 上限を超える分は rejectedOverLimit、形式が不正なものは rejectedInvalid に入ります (他の銘柄は登録されます)。rejected は両者の合算です。 同じ分類に既に登録済みの銘柄は duplicated に入り、重複登録はされません(もう一方の分類には入れられます)。

銘柄コードは英字入り(140A 等)も指定できます。全角・.T 付きも自動で正規化します。

※ 本データは情報提供を目的とし、投資助言・推奨ではありません。

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": {
      "codes": "<codes>"
    },
    "name": "add_to_watchlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoメモ(任意。監視だけ。全銘柄に同じメモが付きます)。上限を超える分は切り詰めて保存します。
codesYes追加する証券コードの配列(例: ["7203", "6758"])
sharesNo株数(任意。category: favorite のときだけ。正の数)
categoryNo分類(任意)。favorite = お気に入り(ポートフォリオ)、watching = 監視。省略時は watching
targetPriceNo目標の株価・円(任意。category: favorite のときだけ。1銘柄ずつ。今の会社予想の配当で目標利回りに直して保存。配当予想が無い銘柄は不可)
targetYieldNo目標利回り・%(任意。category: favorite のときだけ。1銘柄ずつ。targetPrice とは片方だけ)
acquisitionPriceNo取得単価・円(任意。category: favorite のときだけ。正の数)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / targetPrice
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 100000000,
      +      "type": "number"
      +    }
      +  ],
      +  "description": "目標の株価・円(任意。category: favorite のときだけ。1銘柄ずつ。今の会社予想の配当で目標利回りに直して保存。配当予想が無い銘柄は不可)"
      +}
    • addedInput schema / properties / targetYield
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 100,
      +      "type": "number"
      +    }
      +  ],
      +  "description": "目標利回り・%(任意。category: favorite のときだけ。1銘柄ずつ。targetPrice とは片方だけ)"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / note / description
      Previous value: -"メモ(任意。監視だけ。全銘柄に同じメモが付きます)。300文字を超える分は切り詰めて保存します(master プランは無制限)。"New value: +"メモ(任意。監視だけ。全銘柄に同じメモが付きます)。上限を超える分は切り詰めて保存します。"
  3. Changed4 schema fields changed
    • addedInput schema / properties / acquisitionPrice
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 100000000,
      +      "type": "number"
      +    }
      +  ],
      +  "description": "取得単価・円(任意。category: favorite のときだけ。正の数)"
      +}
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "分類(任意)。favorite = お気に入り(ポートフォリオ)、watching = 監視。省略時は watching",
      +  "enum": [
      +    "favorite",
      +    "watching"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / note / description
      Previous value: -"メモ(任意。全銘柄に同じメモが付きます)。300文字を超える分は切り詰めて保存します(master プランは無制限)。"New value: +"メモ(任意。監視だけ。全銘柄に同じメモが付きます)。300文字を超える分は切り詰めて保存します(master プランは無制限)。"
    • addedInput schema / properties / shares
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 1000000000,
      +      "type": "number"
      +    }
      +  ],
      +  "description": "株数(任意。category: favorite のときだけ。正の数)"
      +}
  4. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations cover only readOnly/idempotent/destructive, so the description carries the real burden and does: per-user storage cap (~900KB), count limits on watching only, duplicate handling into `duplicated`, partial-success buckets (rejectedOverLimit / rejectedInvalid / rejectedStorageFull / rejected), code normalization of full-width and .T suffixes, and the count/favoriteCount/watchingCount response fields. This is context an agent could not infer from any structured field.

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?

Front-loaded with purpose, then category semantics, then an inline example, then limits and error buckets, so structure is good. It runs long and a few lines are near-duplicative (the count/totalCount/watchingCount explanation repeats the limit statement), and the closing investment-advice disclaimer adds nothing for tool selection.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation tool with no output schema, the definition still describes the response shape (count, favoriteCount, watchingCount, rejected* buckets, duplicated) and the follow-up path (get_watchlist for listing, get_timely_disclosures / get_large_holdings / get_earnings_forecast for the watching rationale). Nothing an agent needs to call it correctly or interpret the result appears to be missing.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds meaning the schema cannot express: shares implies holding:true, targetYield is converted via the company's forecast annual dividend (not current price) into targetPrice and recomputed on dividend changes, targetPrice and targetYield are mutually exclusive, shares/acquisitionPrice work only when codes has one element, and note applies to watching only and is replicated to all codes and truncated. These are genuine cross-parameter constraints beyond the schema.

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 opens with a specific verb and resource ('監視リストに銘柄を追加します') and immediately splits the resource into two named categories (favorite / watching) with opposite semantics, so the agent can tell exactly what this tool writes and how it differs from get_watchlist or remove_from_watchlist.

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?

It maps natural-language requests to the correct category ('ポートフォリオに入れて' → favorite), states the omission default ('分類を省略すると監視になります'), gives a worked example call, and points to the sibling (get_watchlist) for the current limit. The conditions that select one behavior over another are explicit rather than implied.

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