Skip to main content
Glama

calculate_spectrum

Computes a 2D spectral embedding of an atlas graph to reveal region clusters from connectivity, independent of anatomical position. Returns no embedding for graphs with fewer than 4 nodes.

Instructions

Embedding espectral 2D del grafo real de un atlas (Laplacian eigenmaps): una posición por región derivada de la estructura del grafo, útil para ver agrupamientos sin depender de la posición anatómica. None por región cuando el grafo tiene menos de 4 nodos (nunca un embedding inventado para un grafo demasiado pequeño).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atlas_idYes
min_weightNo
connection_typeNostructural

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
n_nodesYes
atlas_idYes
min_weightYes
connection_typeYes
spectral_embedding_2dYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It meaningfully discloses an edge case: returns None per region when the graph has fewer than 4 nodes, and emphasizes that it never returns an invented embedding for a too-small graph. This is valuable beyond what the schema conveys, though it does not discuss other behavioral aspects like read-only status or parameter effects.

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 description is reasonably concise, front-loading the core purpose and then covering the small-graph edge case. The phrase 'nunca un embedding inventado para un grafo demasiado pequeño' is slightly repetitive after the None explanation, but overall every sentence contributes useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description explains the output shape and an important null-behavior, and an output schema exists so return values do not need further elaboration. However, it does not explain the two optional parameters or provide explicit selection guidance relative to sibling tools. For a three-parameter tool with 0% schema coverage, this leaves some gaps.

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

Parameters2/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 compensate for the lack of parameter explanations. The description clarifies that the tool works on 'the real graph of an atlas' and that the output relates to graph structure, which helps slightly with atlas_id. However, min_weight and connection_type are completely unexplained, and their roles in constructing the graph are left to the agent to infer.

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 clearly identifies the tool's output as a 2D spectral embedding (Laplacian eigenmaps) of an atlas's real graph, with one position per region. It distinguishes this from anatomical-position-based tools by saying it is useful for seeing groupings without depending on anatomical position. It does not state an explicit verb like 'calculates', but the noun phrase 'Embedding espectral 2D' is specific enough to convey the action.

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?

The description implies when to use the tool: when wanting to see clusters derived from graph structure rather than anatomical position. However, it does not explicitly mention when not to use it or name alternatives such as calculate_laplacian or render_network. The guidance is implied but not fully articulated.

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