Skip to main content
Glama

Portföyü güncelle

portfoy_guncelle
Destructive

Update persistent Borsa Istanbul portfolio across sessions: add, remove, set, list, or clear positions, merge duplicate holdings by weighted average cost, and use current prices when cost is omitted.

Instructions

Kalıcı portföyü değiştirir (oturumlar arası saklanır). islem: 'ekle' (aynı hisse varsa ağırlıklı ortalama maliyetle birleştirir), 'cikar' (adet verilirse kısmi satış, verilmezse tamamı), 'ayarla' (adet/maliyeti doğrudan yaz), 'listele', 'temizle'. Maliyet verilmezse güncel fiyat kullanılır. Kullanıcının açıkça istediği değişiklikleri yap.

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": {
      "islem": "<islem>"
    },
    "name": "portfoy_guncelle"
  }
}

Input Schema

NameRequiredDescriptionDefault
notNo
adetNo
islemYes
sembolNo
maliyetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description goes beyond that by specifying what is destructive per operation ('temizle' clears, 'cikar' without adet sells everything, 'ayarla' overwrites adet/maliyet directly). It also discloses the merge rule (weighted-average cost on 'ekle') and the fallback of using the current price when maliyet is omitted, which the annotations cannot convey. Remaining gap: no statement of what is returned, especially for 'listele'.

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?

The core statement and persistence note are front-loaded, then operation semantics are packed into compact parentheticals with no filler sentences. Density is high but each clause carries a distinct rule; a short list format would read slightly better than the run-on chain.

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 destructive, multi-mode mutation tool with no output schema, the description covers the essential decision points: which operation does what, when cost defaults apply, and that changes persist. It stops short of describing the response payload for 'listele' or failure behavior for an unknown/unheld sembol, which an agent calling this would benefit from.

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 0%, so the description must carry all parameter meaning; it fully explains islem's five enum values, constrains adet's meaning per operation ('cikar' = partial sale, 'ayarla' = direct write), and states maliyet's default. However, 'sembol' and 'not' receive no explanation at all, and the exclusiveMinimum>0 constraints are left to the schema, so compensation is only partial for a 5-parameter tool.

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 first clause names a specific verb and resource ('Kalıcı portföyü değiştirir') and immediately adds the persistence scope ('oturumlar arası saklanır'), which separates it from the read-only analysis siblings such as portfoy_analizi. The full enumeration of islem values makes the tool's action surface unambiguous without opening the schema.

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 a clear behavioral guardrail — 'Kullanıcının açıkça istediği değişiklikleri yap' — which tells the agent to act only on explicit user-requested changes rather than proactively mutating the portfolio. It does not name alternative tools for viewing rather than modifying, but since 'listele' is folded into this tool, no obvious sibling misroute is left open.

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