Skip to main content
Glama

Query SME

query_sme
Read-onlyIdempotent

Query an external Subject Matter Expert (SME) AI for verified domain knowledge. The SME's answers are grounded in verified rules and go through a rigorous verification pipeline — this is NOT a general search, it's consulting a domain expert.

Use this when:

  • You need factual, verified information for content creation (social media, blog posts, newsletters)

  • You want to fact-check a claim before publishing

  • You need talking points grounded in domain expertise

  • You're creating content about a domain the SME covers

Available SME sources:

  • "conduit" — Pharmaceutical compounding COMPLIANCE expert (USP 795/797/800, state board regulations)

SCOPE — compliance and administrative only. Conduit is NOT a clinical tool:

  • IN scope: what a regulation requires, BUD limits, garbing, cleanroom/ISO classes, environmental monitoring, SOPs, training and competency, recordkeeping REQUIREMENTS (which fields a record must carry).

  • OUT of scope: dosing, therapy selection, patient-specific clinical judgment, or any question whose answer is a treatment decision. Do not ask it those, and do not infer them from its answers.

  • Master Formulation Records: Conduit can tell you the required SHAPE of the record (which fields 795/797 demand). It does not supply the clinical VALUES that go in them — the pharmacist authors and owns those.

Routing: pharma / USP 795·797·800 / BUD / board-of-pharmacy COMPLIANCE fact you must get right → call query_sme (the verified Conduit SME) to fact-check it BEFORE escalating or deriving the rule yourself; cite its sources. Compliance only — never dosing or clinical judgment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNoOptional context about why you're asking — helps the SME give a more relevant answer. E.g., "I'm creating a social media post about cleanroom best practices"
questionYesThe question to ask the subject matter expert. Be specific and clear.
companyIdYesFreedomOS company id to act within (you must be a member). Required for company-scoped tools.
sme_sourceNoWhich Expert to consult, by key. "conduit" (pharmaceutical compounding compliance) is always available; your company may have additional Experts configured. Defaults to "conduit".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=true, openWorldHint=true, idempotentHint=true), the description adds significant behavioral context: answers are 'grounded in verified rules' and pass a 'rigorous verification pipeline', it is not a general search, and it explicitly discloses that the SME (conduit) is compliance-only and does not provide clinical values or record content. This is exactly the kind of behavioral detail agents need.

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?

The description is long but meticulously structured: opens with a precise purpose, then usage triggers, then source details, then scope, then a routing directive. Each section is dense with useful information and there is no redundancy. The length is justified by the tool's domain complexity and strict scope boundaries.

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?

Given the tool's complexity (a domain expert with strict compliance-only scope and only one available source), the description covers every aspect an agent needs: when to use, what it does, what it does not do, the available source, and how to route questions. The lack of an output schema is acceptable since answers are open-ended queries; the description already sets expectations about verification and sourcing.

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?

Schema coverage is 100%, so the baseline is 3. The description adds value by explaining the sme_source parameter ('Available SME sources: conduit... defaults to conduit') and providing context on how to use the context parameter (e.g., 'I'm creating a social media post about cleanroom best practices'). It also clarifies the companyId is for company-scoped actions. This extra context elevates it slightly above baseline.

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 tool's purpose: 'Query an external Subject Matter Expert (SME) AI for verified domain knowledge.' It explicitly distinguishes from general search ('this is NOT a general search, it's consulting a domain expert') and names the specific resource (conduit for USP 795/797/800 compliance). The scope section further differentiates it from clinical tools.

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?

Provides explicit 'Use this when:' list with four concrete scenarios, plus a detailed SCOPE section with IN/OUT boundaries and a specific routing rule ('pharma / USP 795·797·800 / BUD / board-of-pharmacy COMPLIANCE fact you must get right → call query_sme'). It also states what NOT to do (never dosing or clinical judgment) and what it cannot supply (clinical values), leaving no ambiguity about when to invoke.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources