Skip to main content
Glama
bebopp187-stack

Titan Frameworks (LangChain, LlamaIndex, Ollama, XRPL)

Fetch Working Example

fetch_working_example
Read-onlyIdempotent

Get a complete runnable example file with install/run commands and source for LangChain, LlamaIndex, Ollama, or XRPL goals: agent, rag, chat, payment. Use when snippets are too small to run.

Instructions

Fetch one complete runnable file (filename, install/run, source) for a goal such as agent, rag, chat, payment, or rlusd. Use when fetch_latest_syntax snippets are too small to execute. matched=false means no catalog example — then fetch_latest_syntax. Paid tools/call: $0.001 USDC or 1000 drops XRP; does not execute the example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalYesWhat to build: agent, rag, chat, lcel, payment, rlusd, trustline, …
runtimeNoopenai, ollama, or xrpl-testnet. Omit to take the best match
languageNopython or typescript. Omit to take the best match
frameworkYesOne of langchain, llamaindex, ollama, or xrpl — the library the example should use

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
runYes
codeYes
goalsYes
hintsYes
matchedYes
runtimeYes
filenameYes
languageYes
versionsYes
frameworkYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already include readOnlyHint=true and idempotentHint=true, and the description reinforces them by stating 'does not execute the example.' It also adds valuable non-obvious context: the paid cost ($0.001 USDC or 1000 drops XRP) and the matched=false response semantics, which go beyond what annotations provide.

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

Conciseness5/5

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

Two tight sentences front-load what the tool fetches, then cover usage context, fallback behavior, and cost. No filler or redundant restatement of schema details; every clause earns its place.

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

Completeness5/5

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

For a 4-parameter fetch tool with an output schema, the description fully equips an agent: what it returns (filename, install/run, source), when to choose it, what happens when no example matches, cost, and non-execution guarantee. Nothing needed to invoke it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all four parameters. The description adds some helpful context with goal examples ('agent, rag, chat, payment, rlusd') but does not add meaning beyond what the schema provides for runtime, language, or framework.

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?

States a specific verb and resource: 'Fetch one complete runnable file' with concrete goal examples (agent, rag, chat, payment, rlusd). Explicitly names its sibling fetch_latest_syntax and explains the distinction, making it easy for an agent to select this tool over alternatives.

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

Usage Guidelines5/5

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

Directly says when to use this tool: 'Use when fetch_latest_syntax snippets are too small to execute.' It also provides the fallback behavior ('matched=false means no catalog example — then fetch_latest_syntax'), giving explicit when-to-use and when-not-to-use guidance.

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