Skip to main content
Glama

ABS · AI Business System

Diagnose operations

diagnose

Assess a situation from a question, or from a file (spreadsheet, document or shop-floor photo, base64-encoded, up to 5 MB): judgement, actions and sources. Sends the content to ABS and its AI model, so ask the user before sending anything confidential. Uses the account's credits.

Input Schema

NameRequiredDescriptionDefault
langNoAnswer language: zh (Chinese) or en (English)
saveNoKeep it in the user's diagnosis records
companyNoCompany or scene, e.g. 'Line 1'
filenameNoFile name with extension (xlsx, csv, pdf, docx, txt, md or an image)
questionNoWhat to assess or ask
content_base64NoThe file, base64-encoded

Output Schema

NameRequiredDescriptionDefault
urlNoThe user's diagnosis records in ABS, when saved
answerYesJudgement, actions and the basis for them
sourcesYesCited sources: ref, title, url and the basis label of each
saved_idNoDiagnosis record id when saved

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that content is transmitted to an external service and AI model, that it consumes the account's credits, and that payloads are capped at 5 MB. These are non-obvious cost, data-exposure and size constraints that an agent cannot infer from readOnlyHint/destructiveHint.

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 sentences, both front-loaded: the capability and its outputs come first, the operational caveats (data egress, credits) second. No filler, no restatement of the name or title.

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?

With an output schema present, return values need no explanation, and the description covers cost, privacy and size for a 6-parameter tool. The one gap is that all 6 parameters are optional, so the description never says what happens or which mode is chosen if neither a question nor a file is given.

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, but the description adds real value: accepted file families (spreadsheet, document, shop-floor photo), the required base64 encoding, and the 5 MB ceiling. It doesn't clarify how 'question' and 'content_base64' interact when both are supplied.

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

Purpose4/5

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

States a specific verb ('Assess a situation') and the shape of the deliverable ('judgement, actions and sources'), plus both accepted input modes. It does not distinguish itself from the sibling tool 'ask', which an agent could easily confuse with this one.

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

Usage Guidelines3/5

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

Conveys the trigger context (a question or a file) and adds a confidentiality obligation ('ask the user before sending anything confidential'), which is real usage guidance. However it gives no when-not guidance and never routes the agent to or away from the close sibling 'ask'.

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.