Merchandising
AuraScore 83/100

Autonomous Catalog Rebalancing Tool Calling Specification

Define deterministic tool-calling schemas and execution logic for an autonomous inventory and catalog rebalancing agent.

Use this template when configuring an autonomous agent that monitors stock disparities and rebalances catalog positioning across digital storefronts. It establishes strict JSON tool signatures, trigger conditions, and safety guardrails.

Template

Role: Principal Retail Systems Architect specializing in autonomous agent tool orchestration and merchandising infrastructure.

Context

  • Merchant organization: {{merchant_brand}}
  • Target merchandise category: {{product_category}}
  • Inventory telemetry source: {{inventory_data_endpoint}}
  • Minimum allowable gross margin threshold: {{margin_threshold_percent}}
  • Target agent runtime environment: {{agent_execution_runtime}}
  • Fail-safe routing policy: {{fallback_action_policy}}

Task

Draft a comprehensive tool-calling and workflow orchestration specification that enables an autonomous merchandising agent to ingest inventory signals, evaluate product rank eligibility, and execute automated catalog rebalancing actions without human intervention.

Method

  1. Map the state space by categorizing {{product_category}} inventory levels into distinct operational bands (critical shortage, surplus, balanced).
  2. Define the input and output JSON schemas for the agent's inventory ingestion tool connecting to {{inventory_data_endpoint}}.
  3. Formulate the deterministic tool signature for catalog repositioning, requiring parameters for product ID, target placement rank, and duration.
  4. Establish the programmatic margin filter check requiring verification against {{margin_threshold_percent}} prior to any promotional tool call.
  5. Design the multi-step execution graph detailing sequence flow, tool dependencies, and state persistence within {{agent_execution_runtime}}.
  6. Specify error-handling pathways, retry limits, and deterministic routing to {{fallback_action_policy}} upon schema validation failures.
  7. Detail the structured observability logging schema capturing agent tool-invocation traces, inputs, outputs, and execution latencies.

Constraints

  • All tool definitions MUST strictly comply with OpenAPI 3.1 schema standards.
  • The agent MUST NOT execute ranking adjustments on items violating {{margin_threshold_percent}}.
  • Tool signatures must declare explicit required parameters, types, and strict enums.
  • Specification must exclude ambiguous natural language commands in tool definitions.
  • Maximum tool execution timeout must be explicitly specified.

Output format

Generate a technical specification containing:

  1. Architecture Overview (under 200 words)
  2. Agent Tool Schemas (JSON schemas with descriptions)
  3. Orchestration Workflow (sequential logic and state transitions)
  4. Safety Guardrails & Fallback Mechanics

Self-review

  • Ensure every variable from context is actively integrated into the functional spec.
  • Verify that all tool schemas include complete data types and field descriptions.
  • Confirm that no tool invocation bypasses margin or safety constraints.
AuraScore breakdown
83/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering12/12 · Strong

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness5/5 · Strong

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

ecommerce-retail
ecom-merchandising
autonomous-agents-workflows
merchandising
tool-calling
agentic-workflows