Skip to content

You are currently viewing documentation for0.1.0-beta.1

Wrap Mastra execute-shaped tools

When to use this

Use this guide when Mastra exposes a supported execute-style tool map and you want the same Node toolAdapter path used for other execute shapes. Prefer the adapter matrix and Node guide over inventing a complete Mastra sample. Full framework middleware, batch/stream and end-to-end Mastra execution are not qualified.

How to wrap execute shapes

Where Mastra exposes a supported execute-style tool map, use Node toolAdapter as for other execute shapes. Current evidence is a local shape fixture: id, description, inputSchema identity and execution context can be retained when the shape matches. No fabricated end-to-end Mastra sample is published here.

What to expect

Observe mode preserves original payloads, results and upstream exceptions. Statistical detection requires an explicit selection with comparable baseline/live JSON windows; without it the SDK does not learn or refresh a baseline. An empty recent() history is not a clean verdict. Selective repair stays off by default and needs reviewed rename rules plus independent verification. Python remains callable-only for this platform.

Reference

Confirm the matrix row before wrapping. The public Mastra page summarizes surface limits without replacing this how-to.

To issue a scoped API key, open the dashboard, select your organization and environment, then go to Settings → API Keys.