Skip to main content
Glama
@segnals/mcp

@segnals/mcp

by eidostein

segnals_get_pnl_summary

Retrieve profit and loss totals, win rate, trade count and current bot counts for a chosen period such as 24h, 7d, 30d, all time, or a custom ISO date range.

Instructions

Get the PnL (profit and loss) summary for a period: total PnL, win rate and trade count of that period, plus the current bot counts. Period: timeframe "24h", "7d" (default), "30d" or "all"; or start_date and end_date together (ISO 8601), which take precedence over timeframe. A bare date means 00:00 of that day, so an end_date of 2026-10-31 leaves the 31st out: pass 2026-11-01 to include it. Requires scope: read:stats. Example: segnals_get_pnl_summary({ timeframe: "30d" })

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "segnals_get_pnl_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoThe account to act on. Optional: this program holds one account, "default".
end_dateNoEnd of a custom period, ISO 8601 (e.g. 2026-11-01). Requires start_date.
timeframeNoPeriod to report: "24h", "7d" (default), "30d" or "all"
start_dateNoStart of a custom period, ISO 8601 (e.g. 2026-10-01). Requires end_date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "The account to act on. Optional: this program holds one account, \"default\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / end_date
      Added value: +{
      +  "description": "End of a custom period, ISO 8601 (e.g. 2026-11-01). Requires start_date.",
      +  "type": "string"
      +}
    • addedInput schema / properties / start_date
      Added value: +{
      +  "description": "Start of a custom period, ISO 8601 (e.g. 2026-10-01). Requires end_date.",
      +  "type": "string"
      +}
    • addedInput schema / properties / timeframe
      Added value: +{
      +  "description": "Period to report: \"24h\", \"7d\" (default), \"30d\" or \"all\"",
      +  "enum": [
      +    "24h",
      +    "7d",
      +    "30d",
      +    "all"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavioral facts: it's a read operation, it requires the read:stats scope, and it states the precedence rule (dates override timeframe) and the endpoint-exclusivity rule for end_date. It omits caching/latency or whether bot counts are live-versus-period-averaged, which keeps it from a 5.

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?

Front-loaded with what is returned before the period mechanics, then the precedence rule, the date edge case, the auth scope, and a concrete example call. Every sentence carries distinct information; the example line is the only mildly redundant element.

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?

No output schema and no annotations, so the description must convey returns and safety, and it names the returned metrics and the required scope. For a 4-parameter, all-optional read tool this is close to complete; a little more on the shape of 'bot counts' would close the gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description exceeds that: it states the default timeframe ('7d'), that start_date/end_date take precedence over timeframe, and that a bare date resolves to 00:00 of that day. The 'account' parameter is left to the schema, which already documents it as defaulting to 'default'.

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?

Specific verb ('Get') plus resource ('PnL summary') plus the exact fields returned (total PnL, win rate, trade count, current bot counts), which implicitly separates it from per-bot siblings like segnals_get_bot_performance. It never names an alternative tool or states scope boundaries explicitly, so it stops short of full sibling differentiation.

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 aggregate/portfolio framing and by the period-selection rules, so an agent can infer this is a portfolio-level stats call rather than a per-bot one. However, there is no explicit statement of when to prefer this over segnals_get_dashboard or segnals_get_bot_performance, and no exclusions or prerequisites beyond the scope requirement.

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