Skip to main content
Glama

Portfolio P&L

portfolio_pnl
Read-onlyIdempotent

Profit and loss for the stock tokens a wallet holds on Robinhood Chain, read only, no key needed: average entry price, unrealized P&L per token and in total. Entry prices come from the wallet’s buys in its transfer history on the chain. Tokens that arrived without a payment have no known cost and are left out of the average. Where the ETH price at the buy’s block is not known, the current one is used and the result is marked approximate. Gas is not counted, sales for ETH show their proceeds only when they went through LI.FI or OKX, and a swap from one stock token to another has no entry price.

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": {
      "wallet": "<wallet>"
    },
    "name": "portfolio_pnl"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerNoOne stock token, like NVDA. Empty returns every holding.
walletYesWallet address on Robinhood Chain, 0x…

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description goes well beyond them by disclosing the computation methodology: entry prices derive from the wallet's buy transfer history, tokens without a payment are excluded from the average, unknown block ETH prices fall back to the current price and mark the result approximate, gas is ignored, sale proceeds only count when routed via LI.FI or OKX, and token-to-token swaps have no entry price. These caveats directly affect how an agent should present the numbers and are exactly the context annotations cannot carry.

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?

Purpose and read-only framing are front-loaded, followed by the methodology caveats in a single dense paragraph. Every clause carries information about how the figures are derived or where they are unreliable, though the run-on list of exclusions could be broken up for faster scanning.

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?

With no output schema, the description takes on the burden of describing return values, and it does so by enumerating per-token and total unrealized P&L plus average entry price. It also flags the 'approximate' marker so the agent knows to qualify results. Minor gaps remain: it does not say what is returned for a wallet with no qualifying buys or how an unknown ticker is handled.

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% — both the ticker parameter ('One stock token, like NVDA. Empty returns every holding.') and the wallet parameter are documented in the schema with an example and default. The description adds no parameter-level detail (e.g., accepted ticker casing or address format) beyond what the schema already provides, so the baseline 3 applies.

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?

The description opens with a specific verb+resource+scope: 'Profit and loss for the stock tokens a wallet holds on Robinhood Chain,' and names the returned values (average entry price, unrealized P&L per token and total). It is clear what the tool computes, though it never distinguishes itself from siblings like stock_portfolio or portfolio_brief, which an agent would have to disambiguate on its own.

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?

Usage is implied by the purpose ('read only, no key needed' signals a safe read), but there is no explicit when-to-use vs when-to-use-another guidance and no sibling tool is named as an alternative. An agent can infer that this is the cost-basis view versus a holdings view, but must guess.

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