Skip to main content
Glama

cortical_roi_report

Read-onlyIdempotent

Computes local versus cloud token usage, USD savings, and remaining cloud budget for a workspace or conversation so you can track zero-token ROI.

Instructions

Compute local vs cloud token usage, USD savings, and remaining cloud budget (0 cloud tokens).

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": "cortical_roi_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
conversation_idNoOptional conversation or session identifier to scope telemetry metrics (defaults to global workspace rollup).
include_local_summaryNoWhen true, append a short qualitative summary generated by the local summarizer model.

Output Schema

NameRequiredDescriptionDefault
markdownYes
local_noteNo
effective_modeYes
handoff_recommendedNo
enforce_cloud_budgetNo
cloud_token_thresholdNo
cloud_remaining_tokensYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds what the computation covers (local vs cloud tokens, USD savings, budget), but the parenthetical '(0 cloud tokens)' is ambiguous — it could mean the budget is zero, or that zero cloud tokens are consumed — and no aggregation or freshness behavior is described. Modest value added on top of annotations.

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?

A single front-loaded sentence with the primary outputs listed in priority order — efficient. The trailing '(0 cloud tokens)' clause is the one piece that costs clarity rather than earning space.

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 an output schema present, return values need no explanation, and the two optional parameters are fully covered by the schema. The only real gap is the absence of any usage trigger, which is minor for a zero-argument report tool.

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 both optional parameters (conversation_id scoping and include_local_summary) are fully documented in the schema. The description mentions neither, which is acceptable at this coverage level but adds nothing beyond the structured fields.

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 uses a specific verb ('Compute') and names the concrete outputs: local vs cloud token usage, USD savings, and remaining cloud budget. That is enough for an agent to know this is a telemetry/ROI reporting tool, distinct from the ingest, compress, and vault siblings, though it never explicitly contrasts itself with any of them.

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

Usage Guidelines2/5

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

There is no when-to-use statement, no prerequisite, and no alternative named. An agent must infer from the phrase 'ROI report' that this is the tool to call when asked about cost savings or budget, which is plausible but not stated.

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