<< All versions

Skill v1.0.2

currentAutomated scan100/100
samotech/skills-tree/a2a-tool

~1 modified

──Details
PublishedDecember 1, 2026 at 05:40 AM
Content Hashsha256:f6d3e1b0818d90f6...
Git SHA2f456eb973cd
Bump Typepatch
Compare with v1.0.1
──Files
Files (1 file, 3.2 KB)
SKILL.md3.2 KBactive
SKILL.md · 72 lines · 3.2 KB

name: a2a-tool description: Use agent-to-agent tool interfaces with explicit contracts, authorization boundaries, message validation, and observable outcomes. metadata: source: skills/07-tool-use/a2a-tool.md category: 07-tool-use version: "v2"


[Image: Dependency Status]

A2a Tool

Category: tool-use Skill Level: advanced Stability: stable Added: 2026-09

Description

Use agent-to-agent tool interfaces with explicit contracts, authorization boundaries, message validation, and observable outcomes. The invocation is contract-first: validate the tool interface and inputs before calling, and verify the observable outcome afterwards rather than trusting acknowledgements.

Inputs / Outputs

DirectionFieldTypeContract
Inputa2a_contractobjectThe target agent card or declared interface: skills, endpoints, auth requirements
InputrequestobjectAction, parameters, and idempotency key bounded to the declared contract
OutputresponseobjectValidated, correlated response (request id matched, payload schema checked)
Outputstate_evidenceobjectIndependent evidence of the resulting state, not just an acknowledgement

Procedure

  1. Inspect the target protocol surface (agent card, declared skills, auth scheme) before the first call.
  2. Validate the request against the declared contract; reject unknown actions and out-of-contract parameters.
  3. Send the call inside the authorization boundary; never widen scopes to make a call succeed.
  4. Correlate the response to the request (ids, task lifecycle state) and validate its schema.
  5. Verify the observable outcome independently; an acknowledgement is not completion.
  6. Record the interaction trace for auditing and retry decisions.

Example

python
request = {'action': 'inspect', 'target': 'repository', 'request_id': 'r-1'}
contract_actions = {'inspect', 'query', 'subscribe'}
assert request['action'] in contract_actions
assert request['request_id'] != ''
print('a2a request validated against the declared contract')

Related Skills

Failure Modes

  • Calling an undocumented interface or undeclared action.
  • Sending incomplete or excessive data outside the contract.
  • Treating an acknowledgement as proof of completion.
  • Ignoring authorization boundaries or widening scopes to fit the call.

Changelog

  • v2 (2026-11): Structural modernization; added the input/output contract table, a deterministic example, an execution procedure, and corpus-verified related links (replaced the non-corpus input-guardrails/AI_CONSTITUTION.md pointers where present).
  • v1 (2026-09): Initial entry.

Evidence

  • https://agentskills.io/specification

Evidence status: implementation guidance only; provider behavior must be checked against current provider documentation; no benchmark claim is made without reproducible evidence.

← v1.0.1All versions