Skip to main content
Glama
eic

XRootD MCP Server

by eic

get_branch_histogram

Fill a histogram from a ROOT file branch and retrieve bin edges and counts. Supports expressions and optional selection cuts.

Instructions

Fill a histogram of a TTree branch and return bin edges and counts. Prefers HTTP-based access; if unavailable, set allow_copy: true to fall back to xrdcp.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to ROOT file
branchYesBranch name (or expression) to histogram, e.g. "ReconstructedParticles.momentum.x"
treeNoTTree name to read from (default: "events")
binsNoNumber of histogram bins (default: 100)
xminNoLower bound of histogram range (auto-detected if omitted, requires xmax)
xmaxNoUpper bound of histogram range (auto-detected if omitted, requires xmin)
cutNoOptional selection criterion applied per event, e.g. "ReconstructedParticles.momentum.z > 0"
serverNoName of the XRootD server to use (default: first configured server)
allow_copyNoFall back to a full xrdcp file copy if HTTP access fails (default: false).
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the preference for HTTP access and the fallback mechanism, but lacks details on failure modes, permissions, or side effects. This is adequate but not comprehensive.

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 description is two sentences, front-loaded with the core action, and no unnecessary words. It is concise and efficient.

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?

Given the tool has 9 parameters and no output schema or annotations, the description is somewhat incomplete. It does not explain the output format (bin edges and counts structure), error handling, or performance characteristics. Adequate but has gaps.

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 the baseline is 3. The description adds no extra parameter information beyond the schema, except implicitly for 'allow_copy' via the fallback explanation.

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 clearly states the verb 'Fill a histogram', the resource 'TTree branch', and the output 'bin edges and counts'. It is specific and distinguishes from sibling tools like 'analyze_root_file' which may perform broader analysis.

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 provides context on HTTP vs xrdcp fallback, guiding when to set 'allow_copy: true'. However, it does not explicitly state when to use this tool versus alternatives or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eic/xrootd-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server