/agentic-engineering:adk-tool-interface-designfrom Agentic Engineering Skills
Design, diagnose or review the model-facing interface of Python Google ADK tools and sub-agents: docstrings, parameter schemas, naming, tool-count budgets, result shaping, and AgentTool vs sub_agent vs single_turn mode.
Ships in Agentic Engineering Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Deliver a small, verified change to what the model sees of a tool (name, description, parameters, result) or of a delegated agent (name, description, request parameters, return path), or an actionable review of those interfaces. Work inside the target's existing tools, agents, pins and tests. The model cannot see Python; it sees one declaration per tool and one result dict per call. Every recommendation here pairs with an observable check.
Read the tool functions, toolsets, agent definitions (tools=,
sub_agents=, mode=, description=), the instruction text that mentions
tools, callbacks that touch tool arguments or results, and the existing tool
tests. Note which tools read, which write, and which are server-supplied
(MCP, OpenAPI).
Identify the pinned google-adk and google-genai versions from the
manifests and lockfile. Read compatibility:
on 2.8.0 the docstring is the entire description and no per-parameter
description reaches the model (Annotated metadata is preserved from
2.10.0), so parameter names and the docstring body carry the semantics.
Preserve the pin; propose an upgrade as a decision, not a side effect.
Run the read-only linter from this skill's directory with an available Python 3.11+ interpreter (interpreters):
python "$SKILL_DIR/scripts/lint_tool_schemas.py" --project . --max-tools 20
It parses source with ast, never imports the project, and prints
identifiers, counts and file:line only. Findings are review prompts
(missing or one-line docstrings, untyped or generic parameters, mutually
exclusive booleans, non-dict or status-less returns, raise without an error
dict, blocking I/O in a sync tool, near-duplicate names or descriptions,
tool counts, short sub-agent descriptions, identity parameters). A
partial: true result means an area was not scanned.
If recorded events exist (an adk web session export or test capture),
measure result cost:
python "$SKILL_DIR/scripts/report_tool_result_sizes.py" --events events.json
Record the current declaration text and size for each tool you will touch (validation, step 2). This is the "before".
Ask only for decisions the source cannot settle: which tools must stay separate for policy reasons, what result size the application tolerates, and whether a sub-agent needs user interaction.
| Mode | Decision and reference |
|---|---|
| (a) New tool or toolset design | Read the FunctionTool contract for what the pinned version declares, then naming and consolidation for the docstring template, parameter rules and when to merge or split. For more than about 20 tools, or any MCP/OpenAPI toolset, also read tool count and toolsets. |
| (b) Wrong tool or wrong parameter diagnosis | Dump the live declarations and compare against the prompt that failed. Fix the description or name before touching the instruction (naming and consolidation); check the error dicts the model saw before the mistake (results and errors); check the active tool count (tool count). Hand the accuracy measurement to adk-agent-evaluation. |
| (c) Result and context-cost review | Read results and errors: status taxonomy, fields for the next step, pagination and truncation defaults, durable store plus opaque reference, actionable error dicts, treatment of server-supplied text. Measure with the result-size report before and after. |
| (d) Delegation interface review | Read delegation interfaces to choose between chat sub-agents, task, single_turn and AgentTool, set skip_summarization, and write the sub-agent description the parent model will read verbatim. adk-workflow-design owns the control flow; adk-agent-instructions owns the wording. |
| (e) Review or recommendation | Use the references above; report each finding with its file:line, the declaration or result it affects, the observable check that would show the fix, and the evidence label (vendor guidance, documented behaviour, independent evidence, source-verified). Change nothing unless asked. |
A request may need several rows; keep them in one change set and one report.
When the project has agents-cli-manifest.yaml, consult the installed
google-agents-cli-adk-code skill (references/adk-python.md, "Tools", or
the long-horizon-harness recipe for a guard chain and result pruning); if it
is not installed, adk-engineer explains how to get it. Its tool rules are the
scaffold's conventions; the declaration dump on the pinned version decides
what the model sees.
State the affected tools, agents and tests before editing. Then:
status values and
example dicts. Do not mention the injected ToolContext parameter; the model
never sees it and the ADK docs say it can confuse the model.verb_noun, prefix by service when several services are present,
and keep names unique per agent; ADK shadows duplicates with a warning.str, int, float, bool,
list[str], dict[str, Any], Optional[T], an Enum). Avoid bare list
or dict, unions of several types and nested models; check PEP 604 unions
and anyOf against the pinned builder and API variant. Give defaults only to
tuning knobs (page size, format), never to values the user supplies.ToolContext or configuration (adk-tool-auth-and-secrets).status and, on failure, error_message (or error) and
a hint saying what to do next; never raise for expected failures and never
return a bare string. Bound list sizes with a default and a ceiling; move
large payloads to a durable store and return a reference.async def for I/O tools so ADK can run independent calls
concurrently, and make tools that may be selected together side-effect-safe
in any order.before_tool_callback (return None, not {}, to let the
tool run), output trimming or artifact offload in after_tool_callback,
policy that depends on ToolContext.state inside the tool. Budgets and
approval policy stay with adk-operational-guardrails.mode='single_turn' sub-agents over direct
AgentTool unless you need the isolated session, and write the description
as a tool docstring. Wrap built-in tools (Google Search, code execution) in
an AgentTool or set bypass_multi_tools_limit when other tools are
present; see delegation interfaces.Do not edit generate_content_config.tools; ADK rejects it. Forcing
selection (function_calling_config modes, allowed_function_names) is a
request setting, not prompt text; verify the enum in the pinned google-genai.
Inspection is read-only, and code generation authorises no deployment, paid call or live test. Before any consequential operation (an API, billing or quota change, a billable resource, a secret, IAM, a data migration, a deployment, a deletion, or a paid or destructive test), read consequential operations, present the exact scope and limits, obtain explicit approval and end the turn to wait for it. Cleanup is a separate confirmed operation on resources this workflow created.
Linting is read-only. Changing a docstring or schema changes what the model
may do next; a tool that becomes easier to select is called more often. Before
enabling live tests, show the exact model, project, case count and cost
ceiling; keep paid runs with adk-agent-evaluation. Never widen an MCP allow-list to make a test pass, and
never derive write or confirmation policy from server-supplied annotations.
Read validation. Produce, for each changed tool or
sub-agent: the linter diff, the live declaration dump with its byte size, a
scripted-model Runner test asserting the tool ran with the designed arguments
and returned the designed shape (including one error branch with its hint),
the result-size report on recorded events, and the per-agent tool count. Then
hand the case set and budgets to adk-agent-evaluation as described in
evaluation hooks; selection and parameter
accuracy on a real model are its results, not this skill's.
Report files changed, commands and actual output. A fact read in the
installed package is offline (source read) and a scripted-model run
local (mocked); every threshold taken from a vendor is vendor-measured. On
a second invocation, reread the existing declarations and tests before adding
another wrapper, toolset or test double.
Label each result with its tier (offline, local, live or release) and
outcome (pass, fail, blocked or not run) as
evidence labels defines them;
earlier, vendor and documentation-only results are historical,
vendor-measured or guidance, never this session's evidence.
Independent community project; not affiliated with or endorsed by Google.
LICENSE (opens in a new tab)agents/openai.yaml (opens in a new tab)references/compatibility.md (opens in a new tab)references/delegation-interfaces.md (opens in a new tab)references/evaluation-hooks.md (opens in a new tab)references/function-tool-contract.md (opens in a new tab)references/naming-and-consolidation.md (opens in a new tab)references/operating-rules.md (opens in a new tab)references/results-and-errors.md (opens in a new tab)references/sources.md (opens in a new tab)references/tool-count-and-toolsets.md (opens in a new tab)references/validation.md (opens in a new tab)scripts/lint_tool_schemas.py (opens in a new tab)scripts/report_tool_result_sizes.py (opens in a new tab)tests/test_lint_tool_schemas.py (opens in a new tab)tests/test_report_tool_result_sizes.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/adk-agent-evaluationBuild, adapt or audit a Python ADK agent's test strategy: deterministic tool and Runner tests, live eval sets, simulated conversations, conformance replay, strict result checks and quote or citation support. Use for agent behaviour, regression coverage, eval reliability, fixing a failed stage without re-running paid earlier ones, holdout budgets, error analysis on a labelled dev set to fix wrong decisions, measuring each prompt, exemplar or model change, and subject-matter expert labelling: failure taxonomy, inter-rater agreement and judge calibration. Do not activate for non-agent unit tests, standalone model benchmarks, deployment or cleanup alone, prompt wording or exemplar design (adk-agent-instructions), model settings (adk-model-and-output-contracts), wiring eval gates into CI (adk-release-engineering), production telemetry (adk-agent-observability), adversarial suites (adk-agent-security) or presenting results (adk-presenter)./adk-agent-instructionsDesign, review or repair the instructions of Python Google ADK agents, covering instruction structure and altitude, session-state templating, tool-use guidance inside the prompt, sub-agent descriptions for routing, few-shot exemplar design, the instruction-versus-code division, model-generation prompt notes and prompt-as-code layout with change tests. Use when an agent follows its prompt poorly, over- or under-calls tools, routes to the wrong sub-agent, raises templating KeyErrors, or a prompt must move to a new model generation. Do not activate for the measured evaluation loop (adk-agent-evaluation), orchestration or a key an earlier agent's output_key never wrote (adk-workflow-design), tool docstrings and parameter schemas (adk-tool-interface-design), output schemas or model configuration (adk-model-and-output-contracts), releasing prompt versions (adk-release-engineering), or injection-screening products (protect-adk-sensitive-data).Other plugins' skills for the same job
npx claudepluginhub ruslankhis/agentic-engineering-skills --plugin agentic-engineering