Agent Discovery
This workflow describes the recommended pattern for AI agents to use the Lito Graph MCP tools.
Preconditions
- Lito Graph MCP server is running and connected to the agent’s IDE.
- A graph has been built from the project’s documentation.
Steps
- Call
get_graph_statsto understand the scope of the documentation. - Call
list_nodeswith type filters to discover available concepts, APIs, and workflows. - Call
searchwith the user’s intent to find relevant nodes. - Call
get_nodeto read full details of matching nodes. - Call
traverseto explore connected nodes and understand relationships. - Call
get_workflowif a multi-step procedure is needed. - Call
find_apis_for_entityto discover all capabilities for a given entity.
Failure Modes
- Search returns no results because docs lack graph frontmatter annotations.
- Workflow steps reference APIs that don’t have corresponding API docs.
Recovery
- If search returns empty: fall back to listing all nodes and filtering manually.
- If unresolved API references exist: warn the user that documentation is incomplete.
Guardrails
- Always check
requires_human_approvalon workflows before executing steps. - Always check
risk_leveland present it to the user for medium or high risk workflows. - Never execute API calls without first reading their preconditions and permissions.
- Present guardrails from workflow docs to the user before proceeding.