Skip to content

[Doc] Use callable name in HTTP server example tool list#6

Closed
yuki3738 wants to merge 1 commit into
mainfrom
align_example_tool_list_name
Closed

[Doc] Use callable name in HTTP server example tool list#6
yuki3738 wants to merge 1 commit into
mainfrom
align_example_tool_list_name

Conversation

@yuki3738

Copy link
Copy Markdown
Owner

Motivation and Context

The HTTP server example's "Tools" list in examples/README.md refers to the adder tool by its class name ExampleTool, while the sibling echo tool is listed by its callable name. The tool is registered from the ExampleTool class without an explicit tool_name, so its callable name is example_tool (derived via StringUtils.handle_from_class_name).

This lists it by the callable name, consistent with the echo entry beside it and with the tools/call examples further down.

How Has This Been Tested?

N/A (documentation only). The listed name now matches the tool registered by examples/http_server.rb.

Breaking Changes

None (documentation only).

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • I have added or updated documentation as needed

The HTTP server example's "Tools" list referred to the adder tool by its class name `ExampleTool`, while the sibling `echo` tool is listed by its callable name. The tool is registered from the `ExampleTool` class without an explicit `tool_name`, so its callable name is `example_tool` (derived via `StringUtils.handle_from_class_name`). List it by the callable name for consistency with `echo` and with the `tools/call` examples.

Breaking Changes: None (documentation only).
@yuki3738

Copy link
Copy Markdown
Owner Author

Superseded by #7 (unified into a single doc PR with #5 — the related cURL example line).

@yuki3738 yuki3738 closed this Jun 23, 2026
@yuki3738 yuki3738 deleted the align_example_tool_list_name branch June 23, 2026 15:20
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