Skip to main content
Glama

dot_product

Calculate the scalar product of two equal-length vectors to return magnitude, angle, and an orthogonality check for vector analysis.

Instructions

Compute the dot product of two vectors. Returns magnitude, angle, and orthogonality check.

Input Schema

NameRequiredDescriptionDefault
aYesFirst vector.
bYesSecond vector (same length).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

B3.2/5.0
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 what is returned (magnitude, angle, orthogonality check), which is useful, but says nothing about length-mismatch handling or error behavior. For a simple deterministic pure function the risk surface is small, so a 3 is reasonable.

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 tight sentences with the primary action front-loaded and the return summary following. No filler, though it is minimal rather than rich.

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?

There is no output schema, so the description's disclosure of the return contents (magnitude, angle, orthogonality check) is genuinely necessary and present. Combined with fully documented params, this is essentially complete for a simple two-vector computation.

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 coverage is 100%, with both 'a' and 'b' documented including the same-length constraint on 'b'. The description adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb ('Compute') and resource ('dot product of two vectors'), clearly distinguishing this operation from the sibling cross_product. It does not explicitly name alternatives, but the operation itself is unambiguous and self-identifying.

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?

Provides no guidance on when to use this versus alternatives like cross_product, matrix_operate, or setops_calculate. No prerequisites or context conditions are stated, leaving selection to the model's inference.

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

Deploy Server

Other Tools