Skip to content

Tool aliases #303

Description

@nartmadi

Different LLMs may associate different tool names with the same intent.

A tool named search_products may be selected reliably by one model, while another may select it more reliably when it is named find_products or product_search.

WebMCP could support aliases while keeping one canonical tool identity.

document.modelContext.registerTool({
  name: "search_products",
  aliases: ["find_products", "product_search"],

  description: "Search for products.",
  inputSchema: { ... },
  execute: ...
});

The exact API is just an example. The canonical name would identify the tool, while aliases could give models additional names to associate with the same tool. If an alias is invoked, it would resolve to the canonical tool.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions