Skip to main content
Glama
Yarmoluk

ckg-agentforce

by Yarmoluk

route_query

Determines the optimal model and reasoning approach for an AgentForce question by evaluating dependency graph depth, from simple direct lookup to complex structured reasoning.

Instructions

Route an AgentForce question to the optimal model and reasoning approach via graph depth.

The CKG graph IS the router. AgentForce dependency chains (e.g. Einstein Trust Layer → Data Cloud → NVIDIA NIM → Resolution Criteria) have typed hops that signal reasoning complexity deterministically. No heuristic: the graph decides.

Routing table: hop_depth 1 → haiku · direct (simple concept lookup) hop_depth 2 → sonnet · generic_cot (moderate chain) hop_depth 3+ → opus · sparql_cot (deep dependency, structured reasoning)

Args: question: Concept name or natural language question about Salesforce AgentForce.

Returns: model_tier + reasoning_approach + why + context subgraph to inject before LLM call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
questionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Describes the tool as deterministic based on graph depth, and lists return fields (model_tier, reasoning_approach, why, context subgraph). No annotations are provided, so the description carries the full burden. It is fairly transparent, though it does not mention error handling or auth requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: purpose, mechanism, routing table, args, returns. It is detailed but not excessively long. Some sentences are slightly verbose but add clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with an output schema, the description sufficiently covers input type and return fields. It lacks details on error scenarios or performance, but overall is complete enough for an AI agent to use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explains that the 'question' parameter can be a 'Concept name or natural language question about Salesforce AgentForce,' adding meaningful context beyond the schema's title 'Question.' With schema description coverage at 0%, this compensates well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Route') and the target ('AgentForce question to optimal model and reasoning approach'). It distinguishes itself from sibling tools like list_concepts, search_concepts, and query_ckg by focusing on routing to models rather than querying or listing concepts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit routing logic with a table mapping hop depths to models and reasoning approaches. It explains that the CKG graph decides deterministically. However, it does not explicitly state when to avoid this tool or compare it with alternatives like query_ckg.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yarmoluk/ckg-agentforce'

If you have feedback or need assistance with the MCP directory API, please join our Discord server