Skip to main content
Glama

find_circuit_paths

Find the strongest multi-hop synaptic pathways from one Drosophila neuron class (or neuron) to another, e.g. "how does LC12 reach the giant fiber?" or "what routes lead from DA1 ORNs to MBON01?". Answers from precomputed graphs, so class and neuron paths take a second or two. Use this for indirect routes; for direct connections between two classes use query_connectivity, and for one-sided partner lists use run_query with UpstreamClassConnectivity / DownstreamClassConnectivity. INPUT: ids only — FBbt class ids, or VFB ids for individual neurons; labels are refused, so resolve names with search_terms (filter_types ["neuron","class"]) first. Several ids per end are allowed. SCORING: each step is weighted by its input proportion (inprop_in: the fraction of the downstream class's total synaptic input that comes from the upstream class); a path's score is the product of its steps, so a 3-step path at 0.1 per step scores 0.001. Paths are ranked best first; scores are comparable within a dataset, not as absolute strengths. normalise="output" uses the fraction of the upstream class's output instead. HOW CLASSES ARE COUNTED: each neuron is assigned to its single most specific (leaf) cell type in that connectome, so broad classes do not act as shortcuts. A broad term such as "Kenyon cell" expands to the leaf classes beneath it (listed under sources/targets). Neurons with no leaf type, or more than one, are left out (neurons_left_out counts them). They can still appear in neuron-level paths, as nodes with class null plus status (no_leaf: only general types; multi_leaf: several leaf types; only_axis: only transmitter/lineage-type classes; untyped) and types (the most specific types they do have). Because of this the figures differ from query_connectivity with group_by_class=true, which rolls connections up to every ancestor class and pools datasets: do not compare the two numbers directly. LEVELS: if both ends are classes the search runs on the class graph; if either end is a VFB neuron id, it runs on the neuron graph (class ends expand to their neurons). DATASETS: each connectome is searched separately and reported in its own block; shared_class_paths lists class paths found in more than one dataset, which are the most robust. instance_graph=true adds the best individual-neuron chains along each class path, but takes tens of seconds on the large connectomes: use it only when the user asks about individual neurons, and then with k at most 5 and instance_k at most 3. RECOMMENDED DEFAULTS: k=5, min_synapses=5, exclude_dbs omitted (= ["hb","fafb"]). If no paths are found, try min_synapses=1, then exclude_dbs=[]. Every response names the data release (run) it came from.

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": {
      "source": "<source>",
      "target": "<target>"
    },
    "name": "find_circuit_paths"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNoPaths to return per dataset, best first (default 5, max 20; max 5 with instance_graph).
sourceYesStart of the path: FBbt class id(s) (e.g. "FBbt_00100484") or VFB neuron id(s) (e.g. "VFB_fw011554"). A broad class expands to its leaf classes. Not labels — use search_terms first.
targetYesEnd of the path, in the same form as source.
normaliseNo"input" (default): weight each step by the fraction of the downstream partner's input. "output": by the fraction of the upstream partner's output.input
instance_kNoNeuron chains per class path when instance_graph is true (default 3, max 3).
min_inpropNoIgnore steps whose input proportion is below this (0..1, default 0). Raise it (e.g. 0.01) to keep only substantial steps.
exclude_dbsNoDataset symbols to leave out. Omit for the default (["hb","fafb"], as on query_connectivity); pass [] to search every dataset. Must be symbols from list_connectome_datasets — an unknown name is rejected.
min_synapsesNoIgnore class-to-class (or neuron-to-neuron) connections with fewer synapses than this (default 5). Lower to 1 if nothing is found.
instance_graphNoIf true, add the best individual-neuron chains along each class path (instances). Slow: tens of seconds on the large connectomes, so only when the user asks about individual neurons. With it, k is at most 5 and instance_k at most 3. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/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 so thoroughly: it explains scoring by input proportion, rank ordering, leaf-class counting, excluded neurons and statuses, per-dataset blocks, shared class paths, and the slow cost of instance_graph. It also warns that figures are not comparable with query_connectivity group_by_class=true.

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 long but well structured with labeled sections for input, scoring, class counting, levels, datasets, and defaults, and the core purpose is front-loaded. Some details duplicate the schema, but the length is mostly justified by the tool's complexity.

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?

Although there is no output schema, the description is complete enough for an agent to call the tool correctly: it covers input constraints, scoring interpretation, dataset separation, class expansion, excluded neurons, performance tradeoffs, recommended defaults, and fallback behavior.

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 description coverage is already 100%, but the description adds meaningful semantics beyond the schema for scoring formulas, normalise behavior, class-graph versus neuron-graph switching, min_synapses fallback, and instance_graph performance constraints. Some parameter details are repeated from the schema, which keeps it below the highest score.

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 states a specific verb and resource: find the strongest multi-hop synaptic pathways from one Drosophila neuron class or neuron to another. It explicitly distinguishes itself from query_connectivity for direct connections and from run_query with UpstreamClassConnectivity/DownstreamClassConnectivity for one-sided partner lists.

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

Usage Guidelines5/5

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

It gives clear when-to-use guidance for indirect routes, names the alternatives for direct and one-sided queries, and specifies ID-only inputs with search_terms resolution. It also provides recommended defaults and fallback steps if no paths are found.

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.