MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / schema_required_keys

Function schema_required_keys

src/tool_command/args.rs:420–430  ·  view source on GitHub ↗
(def: &ToolDefinition)

Source from the content-addressed store, hash-verified

418}
419
420fn schema_required_keys(def: &ToolDefinition) -> Vec<String> {
421 def.input_schema
422 .get("required")
423 .and_then(Value::as_array)
424 .map(|arr| {
425 arr.iter()
426 .filter_map(|v| v.as_str().map(String::from))
427 .collect()
428 })
429 .unwrap_or_default()
430}
431
432fn max_typo_distance(name: &str) -> usize {
433 if name.len() > 6 {

Callers 2

validate_tool_argsFunction · 0.85

Calls 2

collectMethod · 0.80
as_strMethod · 0.45

Tested by

no test coverage detected