Skip to main content
Glama

Allen Structures

allen_structures
Read-onlyIdempotent

Query the Allen Brain Atlas structure ontology, the canonical hierarchy of named brain regions (Field CA1, Primary visual area, Substantia nigra) with their acronyms, colors, parent structure, and full root-to-leaf structure_id_path. AUTHORITATIVE for resolving a brain-region name or acronym to the structure ID that Allen expression, connectivity and reference-space data are annotated against, and for establishing whether one region contains another.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
acronymNoExact structure acronym, e.g. "CA1", "VISp", "SNr".
graph_idNoStructure graph to search. 1 = adult mouse brain (default), 10 = human brain, 17 = developing mouse.
num_rowsNoRows to return, 1-200 (default 25).
start_rowNo0-based offset for paging (default 0).
structure_idNoAllen structure id, e.g. 382 (Field CA1).
name_containsNoSubstring of the structure name, e.g. "hippocamp", "visual area". Case-insensitive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description adds context annotations cannot: that the ontology is the canonical reference against which Allen expression, connectivity and reference-space data are annotated, plus the shape of the returned attributes. It omits return ordering and what happens with an unscoped query.

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?

Two sentences, no filler, with the ontology identity front-loaded and the authority/resolution role second. The second sentence is dense with several clauses but each carries distinct information.

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?

For a six-parameter, all-optional read-only query tool with full schema coverage and no output schema, the description supplies the missing pieces: what the records represent, which fields come back, and why the returned structure IDs matter downstream. Nothing an agent needs to call it correctly is absent.

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% and every parameter carries a description with examples and defaults, so the schema does the heavy lifting. The description adds no filter-specific meaning (e.g. how acronym vs name_contains interact, or that graph_id selects species/age) beyond what the schema already states, making the documented baseline of 3 appropriate.

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?

States a specific verb ('Query') and a precisely named resource (Allen Brain Atlas structure ontology), then characterizes the payload with concrete examples (Field CA1, Primary visual area) and the returned fields (acronyms, colors, parent structure, structure_id_path). An agent can tell this apart from allen_expression_datasets and allen_search_genes without opening the schema.

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?

Explicitly declares the tool 'AUTHORITATIVE for resolving a brain-region name or acronym to the structure ID' and for testing containment ('whether one region contains another'), which is clear when-to-use guidance. It stops short of naming a specific alternative tool or stating when not to use it, so it sits below the top band.

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.