Openapi.yaml: endpoints with similar names. openapi tags

When a plugin contains, for example, these 2 (GET) endpoints:
/foo/do-sth/:id
/bar/do-sth/:name

I find chatgpt is struggling to differ between the two. Even with clearly differentiating descriptions of both endpoints and their paramaters, and even when those parameters differ in type.
Wondering if there’s a suggestion how to present such endpoints to chatgpt.

I’ve also tried separating the two endpoints by tagging them differently, and describing the tags in a way that creates differentiation. That didn’t seem to have an effect. Am wondering if openapi tags are ignored by chatgpt?

Thanks.