Tag

#tools

1 post tagged.

Tutorials

Mastra rewrites tool object keys, and toolChoice does not follow

Mastra documents that the object key, not the tool id, becomes the name the model sees. It does not document that the key is rewritten first: invalid characters become underscores and the result is cut to 63. The tools array goes through that rewrite. toolChoice does not.

10 min read23