Skip to main content
Glama
Platano78

Smart-AI-Bridge

by Platano78

get_analytics

Diagnose why a specific backend was selected, tune routing rules, and compare token spend across providers using internal telemetry.

Instructions

Inspect SAB's internal telemetry: backend invocation counts, success/failure rates, latency distributions, estimated token spend per provider, and recent routing decisions. Read-only — never calls an LLM, never writes to disk. Use to diagnose 'why did SAB pick backend X', tune routing rules, or understand cost trade-offs across providers. Report types are cumulative: full_report includes everything from the other types. Returns: {success, report_type, data} where data depends on report_type — current: {backends:{[name]:{invocations, success_rate, p50_ms, p95_ms}}, session_uptime, timestamp}. historical: {time_range, series:[{timestamp, backend, calls, errors, latency}]}. cost: {by_backend:{[name]:{tokens_in, tokens_out, estimated_usd}}, total_estimated_usd}. recommendations: {recommendations:[{type, suggestion, confidence}]}. full_report: a merged object with all sections. If analytics hasn't initialized, returns {message, basic_stats:{uptime, memory, timestamp}}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNo`json` = machine-readable nested object. `markdown` = human-readable summary with tables. Default: json.
time_rangeNoLookback window for `historical` and `cost` reports. Ignored for `current` and `recommendations`. Default: 7d.
report_typeNo`current` = stats since this server started (invocation counts, success rate, p50/p95 latency per backend). `historical` = time-bucketed series over `time_range`. `cost` = estimated token spend per backend, with cost-per-1K-tokens projections. `recommendations` = SAB heuristics on backend selection (e.g. "switch coding tasks to qwen3 — 18% faster on your traces"). `full_report` = all of the above.
Behavior5/5

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

With no annotations provided, the description takes full responsibility. It clearly states 'Read-only — never calls an LLM, never writes to disk,' which is a critical safety disclosure. It also details the cumulative nature of report types and the uninitialized fallback behavior, going far beyond basic expectations.

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 efficiently structured: it leads with purpose and safety, then lists report types with their exact return shapes, and ends with the uninitialized case. Every sentence carries necessary information without repetition or fluff.

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 three optional parameters with rich enums, no output schema, and complex behavior, the description is exceptionally complete. It covers return values for every report type, the cumulative relationship, and an edge case (uninitialized). This is a model description for a complex diagnostic tool.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds significant semantic value: it explains exactly what each report_type returns, how time_range is ignored for some types, and the cumulative relationship of report types. This provides practical understanding that raw schema enums cannot convey.

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 states a specific verb and resource: 'Inspect SAB's internal telemetry' and enumerates concrete data categories. This clearly distinguishes it from sibling tools like review or ask, which are about coding actions rather than diagnostics.

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?

Explicit when-to-use guidance is given: 'Use to diagnose why SAB picked backend X, tune routing rules, or understand cost trade-offs.' It does not mention when not to use or alternatives, but the tool's unique role among siblings makes this implicit.

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/Platano78/Smart-AI-Bridge'

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