Skip to content

Say on each tool-call span whether its tool was advertised - #425

Merged
Gabriel-Darbord merged 1 commit into
mainfrom
spans-say-whether-a-tool-was-advertised
Nov 23, 2026
Merged

Gabriel-Darbord merged 1 commit into
mainfrom
spans-say-whether-a-tool-was-advertised

Conversation

@Gabriel-Darbord

Copy link
Copy Markdown
Member

Each tool-call span now says whether the server that answered lists the tool in tools/list: pharo.mcp.tool.advertised, true or false.
An agent calls the tools it sees first more often, so a count of calls per tool means little without it. pharo.mcp.dispatch_path only hints at it, since an agent may call a discoverable tool by name.
A name the server has no tool for leaves the attribute out.
The call's observability context carries it as #advertised, so other backends can use it too.

A call's observability context now says whether the server lists the tool in tools/list, and the OpenTelemetry backend sends it as pharo.mcp.tool.advertised. An agent calls the tools it sees first more often, so counts of calls per tool are read against it. A name the server has no tool for leaves it out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Gabriel-Darbord
Gabriel-Darbord merged commit 80493fd into main Nov 23, 2026
6 checks passed
@Gabriel-Darbord
Gabriel-Darbord deleted the spans-say-whether-a-tool-was-advertised branch November 23, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant