Skip to main content
Glama

neuron_output

Computes a single neuron's output from inputs, weights with bias, and an activation function (threshold, logistic, ReLU, tanh, or linear).

Instructions

Output of one neuron. weights = [w0 (bias), w1, ...]. activation: all | threshold | logistic | relu | tanh | linear.

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": {
      "inputs": "<inputs>",
      "weights": "<weights>"
    },
    "name": "neuron_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
weightsYes
activationNoall

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses the weight/bias convention, which is genuinely useful, but says nothing about the default "all" behavior (presumably returning every activation variant), whether the call is a pure computation, or how inputs relate positionally to weights beyond the bias.

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?

Three short, front-loaded fragments with no filler; the weights convention comes before the activation options. It is telegraphic rather than polished, but every element carries information.

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

Completeness2/5

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

An output schema exists, so return values need not be explained. However, the essential formula (activation of bias plus weighted sum), the inputs-to-weights length relationship, and the meaning of the "all" default are all missing for what is fundamentally a numeric computation tool.

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 all three parameters. It explains weights well (w0 is the bias slot) and lists the activation enum values, but never clarifies the required alignment between the inputs array and w1..wn, nor what threshold/logistic/relu/tanh/all actually return.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Output of one neuron" identifies the resource but is close to a restatement of the tool name, and it never states that the output is computed from the supplied inputs and weights. The weight-ordering note (w0 = bias) and the activation list add real specificity, but the core computation is left implicit.

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 when-to-use guidance is given: nothing says whether this is for a single perceptron step versus a full network (e.g., mlp_forward_backprop or fc_layer_weights). The activation list enumerates options but offers no advice on choosing among them or on when to use the default "all".

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