Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Model-aware tool definitions

Aperta
#297 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
Bikeshed
Stelle
4.7k
Fork
328
Merge medio
2g 15h
PR unite (30g)
16

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di webmachinelearning/webmcp

Tutte le issue di webmachinelearning/webmcp

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.