Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Model-aware tool definitions

Open
#297 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Domain
api

Research direction

Start by reading the existing WebMCP tool definition and schema entry points to see how descriptions and parameters are represented. Then assess where model or model-family context could be provided, and how a default definition would fit. Done means agreeing on an API and behavior for model-specific descriptions, schemas, and parameter descriptions with a fallback.

Written by the indexing model from the issue text.

Description

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!

Dominant language
Bikeshed
Stars
4.7k
Forks
328
Avg merge
1d 21h
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from webmachinelearning/webmcp

All issues in webmachinelearning/webmcp

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.