Skip to main content
Glama
aeoess

agent-passport-system-mcp

by aeoess

aps_compute_data_axis_weights

Computes normalized contribution weights for the D-axis from access receipts, applying role, recency, and content length. Returns 6-digit decimal weights that sum 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
profileNoOptional WeightProfile override; defaults to DEFAULT_WEIGHT_PROFILE
sourcesYesPer-source records with retrieval metadata
action_timestampYesISO-8601 UTC ms when the action ran (t_action)
Behavior5/5

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

With no annotations provided, the description carries the full burden. It discloses important behavioral details: empty input returns empty array, all-zero raw weights cause an error, output uses 6-digit decimal strings, weights sum to ~1.0, and the exact formula (role × recency_decay × length_weight) normalized per spec BUILD-B.

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 compact and dense: three sentences cover purpose, output, edge cases, formula, spec reference, and SDK naming. Every sentence earns its place and the information is front-loaded.

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

Completeness5/5

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

Despite no output schema, the description gives a complete picture: input types, output format, normalization target, error condition, formula reference, and a downstream consumer. It is sufficient for an agent to decide when and how to invoke it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameters are already described in structured data. The description adds value by explaining the weight formula, the default profile behavior, and that parameter names align with the SDK, which helps an agent understand how the parameters interact.

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 opens with a specific verb ('Compute') and clearly identifies the resource ('D-axis fractional weight vector'), input type (AccessReceipt records), and output (DataAxisEntry[]). It also ties the output to a downstream sibling (aps_construct_attribution_primitive), which helps distinguish it from other computation tools.

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?

Usage is strongly implied by stating the input requirements and that the result 'feed[s] directly into aps_construct_attribution_primitive.' It also conveys context like empty/all-zero edge cases, but it does not explicitly state when not to use this tool or mention alternatives for other axes.

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-mcp'

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