Return tool as an MCP Tool object (specs 2025-11-25 and 2026-07-28).
name has namePrefix prepended, checked against MCP_NAME_RE,
so one provider can reach two targets on one server. inputSchema and
outputSchema are the descriptor's schemas verbatim; the three hints
become annotations; access, target, result_kind, deprecated, the
meta bag and tags go under _meta with the com.opscogs.octools/ prefix,
beside the spec version. Only func is not represented (it is the
server's handler). title, outputSchema, target and tags are present
only when set. Throws OCToolError when the prefixed name breaks the
rule.
Return
toolas an MCPToolobject (specs 2025-11-25 and 2026-07-28).namehasnamePrefixprepended, checked against MCP_NAME_RE, so one provider can reach two targets on one server.inputSchemaandoutputSchemaare the descriptor's schemas verbatim; the three hints becomeannotations;access,target,result_kind,deprecated, themetabag andtagsgo under_metawith thecom.opscogs.octools/prefix, beside the spec version. Onlyfuncis not represented (it is the server's handler).title,outputSchema,targetandtagsare present only when set. Throws OCToolError when the prefixed name breaks the rule.