1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//! MCP tool parameter types for graph query operations. use rmcp::schemars; use serde::{Deserialize, Serialize}; /// Input for `query` — run a GQL or SPARQL query against the knowledge graph. #[derive(Debug, Serialize, Deserialize, schemars::JsonSchema)] pub struct QueryParams { /// Namespace (omit for server default). pub namespace: Option<String>, /// GQL or SPARQL query string. /// /// GQL example: /// MATCH (a:concept)-[e:extends]->(b) RETURN a.name, b.name LIMIT 10 /// /// SPARQL example: /// SELECT ?a WHERE { ?a :kind "concept" . } pub query: String, }