get_code_examples
Extract code snippets and examples from source documentation. Ideal for finding implementation patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What code to find | |
| language | No | Programming language filter |
Extract code snippets and examples from source documentation. Ideal for finding implementation patterns.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What code to find | |
| language | No | Programming language filter |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It does not state whether the tool is read-only, what the output format is, or any side effects. The term 'Extract' implies reading, but that is implicit rather than explicit, leaving significant gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description consists of two concise sentences. The first sentence states the main action and resource, and the second adds a use case. Every word earns its place, with no redundancy or unnecessary detail.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with only two parameters and no output schema, the description provides the core purpose and a usage hint. However, it fails to explain the return format or output structure, which is a gap given the absence of an output schema. It is adequate but not thorough.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema provides full descriptions for both 'query' and 'language' parameters, achieving 100% schema description coverage. The tool description adds no additional parameter details beyond what the schema already states, so the baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function with a specific verb ('Extract') and resource ('code snippets and examples from source documentation'). It distinguishes from siblings like search_docs by focusing on code examples, but does not explicitly contrast with query_source or extract_schema, so it falls short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The phrase 'Ideal for finding implementation patterns' provides a clear use case for when this tool is appropriate. However, it does not mention alternatives or when not to use it, so it lacks explicit exclusions and alternative guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.
Several tools overlap in purpose: ask_question and search_docs both return relevant passages across connected sources, and search_issues partially duplicates that for known bugs. The more specialized tools are distinct, but an agent could easily pick search_docs instead of ask_question and still get similar results.
All 8 tool names follow a consistent lower_snake_case verb_noun pattern with descriptive verbs like ask, extract, get, query, search, and summarize. There is no mixing of naming conventions, abbreviated verbs, or ambiguity in the naming style.
8 tools is well within the ideal 3-15 range for a documentation-focused MCP server. Each tool covers a plausible distinct workflow: asking, searching, summarizing, extracting schemas, code examples, quickstarts, and known issues, so none feels unnecessary.
The tool surface covers the core read-oriented documentation workflow well: search, ask, summarize, targeted source queries, schema extraction, code examples, quickstarts, and issue lookup. Minor gaps exist such as no way to list connected sources or retrieve a full raw page, but agents can work around these using query_source and search_docs.