MCPcopy
hub / github.com/plotly/dash / _schema_for

Function _schema_for

tests/unit/mcp/conftest.py:82–89  ·  view source on GitHub ↗

Extract the JSON schema dict for a parameter, without description.

(tool, param_name=None)

Source from the content-addressed store, hash-verified

80
81
82def _schema_for(tool, param_name=None):
83 """Extract the JSON schema dict for a parameter, without description."""
84 props = tool.inputSchema["properties"]
85 if param_name is None:
86 param_name = next(iter(props))
87 schema = dict(props[param_name])
88 schema.pop("description", None)
89 return schema
90
91
92def _desc_for(tool, param_name=None):

Calls 1

popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…