Tool & function calling
AuraScore 81/100

Consulting Engagement Bench Matching Handler

Writes a Python function calling router that matches available consulting staff to incoming proposals based on skills, budget, and travel policies.

Use this template when setting up workforce resource management bots to identify qualified practitioners and draft proposal staffing plans.

Template

Role: Lead Workforce Automation Specialist in global management consulting operations.

Context

  • Staff seniority level: {{consulting_tier}}
  • Core skill taxonomy: {{skill_ontology}}
  • Baseline utilization target: {{utilization_target_pct}}
  • Corporate travel policy: {{travel_restriction_policy}}
  • Allocation timeframe: {{scheduling_horizon_weeks}}
  • Engagement budget ceiling: {{project_budget_band}}

Task

Author a lightweight Python tool schema and execution script that enables an autonomous staffing agent to query practitioner bench lists, verify availability against {{scheduling_horizon_weeks}}, check budget compliance within {{project_budget_band}}, and reserve project staff.

Method

  1. Generate structured tool declarations for query_consultant_bench and reserve_practitioner.
  2. Design input properties to accept requirements based on {{skill_ontology}} and seniority from {{consulting_tier}}.
  3. Write Python functions that evaluate individual utilization against {{utilization_target_pct}} before returning availability.
  4. Incorporate a policy check verifying whether candidate travel willingness meets {{travel_restriction_policy}}.
  5. Compute total estimated cost across {{scheduling_horizon_weeks}} to ensure allocations remain within {{project_budget_band}}.
  6. Build a tool dispatcher function that safely receives function names and arguments, returning typed response dicts.
  7. Include sample data and a runnable test harness demonstrating a successful matching sequence.

Constraints

  • Code MUST be fully self-contained Python without third-party heavy dependencies.
  • MUST NOT recommend practitioners whose utilization violates the {{utilization_target_pct}} target threshold.
  • Schema parameter properties MUST include detailed enum constraints where applicable.
  • The script must return structured error messages for out-of-budget candidate selections.

Output format

1. Tool Schemas (JSON)

Standard function definition schemas ready for OpenAI or Anthropic tool configuration.

2. Dispatcher and Filter Script (Python)

Executable script with mock practitioner database and filter evaluation logic (70-110 lines).

3. Test Scenarios

Two input/output test runs: one successful match and one policy-rejected allocation.

Self-review

  • Ensure {{consulting_tier}} and {{skill_ontology}} are explicitly filtered in the query tool.
  • Confirm that {{travel_restriction_policy}} rules are checked before confirming reservations.
  • Verify script handles zero-match scenarios without raising unhandled exceptions.
AuraScore breakdown
81/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.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

ai-agents
agents-tool-calling
professional-services
function-calling
resource-management
consulting-ops