Skip to main content
Glama

np_sum

Calculate the sum of array elements along given axes, or total sum for all elements.

Instructions

Sum of array elements over given axis(es).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
arrayYesThe input array.
axisNoAxis along which to sum (default: None, sums all).
dtypeNoThe type of the returned array (default: "float64").float64

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

The description does not disclose behavioral traits beyond the basic purpose. It lacks information about return types (scalar vs array), handling of integer vs float arrays, or any safety aspects (read-only, destructive). With no annotations, the description carries full burden and is insufficient.

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 a single sentence that is direct and to the point with no extraneous words. It earns its place by compactly conveying the essential operation.

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

Completeness4/5

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

Given the tool's simplicity, the presence of an output schema, and full parameter descriptions, the description is mostly complete. It could mention default behavior (sum all elements) but is adequate for an agent familiar with numpy.

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 baseline is 3. The description does not add meaning beyond the parameter names and basic descriptions in the schema. It does not explain how 'axis' works or the role of 'dtype' beyond defaults.

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 'Sum of array elements over given axis(es).' It uses a specific verb ('Sum') and resource ('array elements') and mentions the axis parameter, distinguishing it from related tools like np_add (element-wise addition) or np_cumsum (cumulative sum).

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives such as np_add or np_cumsum. There is no mention of when not to use it or under what conditions it is appropriate.

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/daedalus/mcp-numpy'

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