Skip to content

Model-aware tool definitions #297

Description

@nartmadi

Different LLMs can behave differently when given the same tool definition.

A tool description and input schema that work well with one model may perform worse with another. One model may select the right tool and arguments, while another may select the wrong tool or generate invalid arguments from the same definition.

WebMCP could support model-aware tool definitions.

description: ({ model, modelFamily }) => {
  if (model === "gpt-5.6") {
    return "...";
  }

  if (modelFamily === "gpt-5") {
    return "...";
  }

  return "Search for products.";
},

The exact API is just an example. Developers could return different tool descriptions, schemas, or parameter descriptions based on the model or model family, with a default fallback.

P.S. This is my first contribution to WebMCP!

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