Skip to main content
Glama
aeoess

agent-passport-system-mcp

aps_compute_data_axis_weights

Compute normalized D-axis contribution weights from AccessReceipt records using role, recency decay, and content length. Returns 6-digit decimal weights summing to ~1.0 for attribution.

Instructions

Compute the D-axis fractional weight vector from a list of AccessReceipt records with role, timestamp, and content length. Returns canonical DataAxisEntry[] with 6-digit decimal contribution_weight strings that sum to ~1.0 and feed directly into aps_construct_attribution_primitive. Empty input → empty array; all-zero raw weights → error. Weights = role × recency_decay × length_weight, normalized per spec BUILD-B §'The D-axis formula'. Parameter names match the SDK: sources, action_timestamp, optional profile.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourcesYesPer-source records with retrieval metadata
action_timestampYesISO-8601 UTC ms when the action ran (t_action)
profileNoOptional WeightProfile override; defaults to DEFAULT_WEIGHT_PROFILE
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that empty input yields empty array, all-zero raw weights cause error, and explains the weight formula (role × recency_decay × length_weight) normalized per spec. This provides good behavioral insight for a computation tool.

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 with no wasted words. It covers purpose, output, edge cases, formula, spec reference, and parameter naming. Highly concise and structured.

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?

For a computation tool with no output schema, the description adequately explains the output type and behavior. It covers inputs, formula, normalization, and downstream use. Minor gaps include precise output format details but overall sufficient.

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%, so the parameter descriptions are already present. The description adds that parameter names match the SDK and notes the optional profile defaults to DEFAULT_WEIGHT_PROFILE, but this is a minor addition. Baseline 3 is 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?

The description clearly states the tool computes a D-axis fractional weight vector from AccessReceipt records. It specifies the output type (DataAxisEntry[]), mentions the formula components and normalization, and explicitly ties it to aps_construct_attribution_primitive. This differentiates it from sibling tools like aps_compute_compute_axis_weights.

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?

The description explains the tool's purpose and mentions edge cases (empty input, all-zero weights). However, it does not explicitly state when not to use it or compare to alternatives. The reference to the formula and output consumption provides contextual guidance.

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/aeoess/agent-passport-system-mcp'

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