Skip to main content
Glama

compute_emotion_curve

Read-only

Computes the emotion curve of the journey: average emotion per phase (phases ordered via orderInPhase). Counts ONLY the customer-side steps — swimlane='customer' or swimlane absent; a step explicitly frontstage/backstage/support is excluded from the computation even if it carries metadata.emotion. Returns emotionCurve [{phaseId, phaseName, emotion}], overall averageEmotion, swimlanesUsed, countsByType. Serves summary visualizations or a numeric recap.

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

Input Schema

NameRequiredDescriptionDefault
_unusedNoUnused parameter
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed2 schema fields changed
    • changedInput schema / properties / _unused / description
      Previous value: -"Paramètre non utilisé"New value: +"Unused parameter"
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The annotations only declare a safe read (readOnlyHint, destructiveHint=false, openWorldHint=false). The description adds the genuinely non-obvious computation rule: only customer-side steps count, and steps explicitly frontstage/backstage/support are excluded even if they carry metadata.emotion. It also discloses ordering via orderInPhase, a detail an agent could not infer from the schema or annotations.

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?

The definition is front-loaded with the purpose, then the filtering rule, then the return shape, then the use case — each sentence carries distinct information. The parenthetical and em-dash clauses are dense but no sentence is redundant.

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?

There is no output schema, and the description compensates by enumerating the returned fields (emotionCurve with phaseId/phaseName/emotion, averageEmotion, swimlanesUsed, countsByType). Combined with the explicit inclusion/exclusion rule, an agent has everything needed to call this correctly and interpret the result.

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 parameters (expectedProjectId, _unused) are already documented in the schema, and the description adds nothing about them. The 'orderInPhase' mention refers to journey data ordering, not an input parameter, so it does not raise the score. Baseline 3 applies.

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 ('Computes the emotion curve of the journey') and immediately narrows scope to 'average emotion per phase'. The aggregation grain and phase ordering make it clearly distinct from sibling compute_* tools, which operate on ownership domains rather than journey emotions.

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 concrete usage context — 'Serves summary visualizations or a numeric recap' — so an agent knows when this tool is appropriate. It stops short of naming an alternative or stating when not to use it (e.g., for non-aggregated per-step reads), which keeps it at 4 rather than 5.

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.