Skip to main content
Glama

strale_trust_profile

Evaluate capability reliability for production use by checking quality scores, grades, and execution guidance to determine safe calling strategies.

Instructions

Check if a capability is reliable before calling it. Returns SQS quality score (0-100), Quality grade (A-F for code correctness), Reliability grade (A-F for uptime and latency), and execution guidance: whether to call directly, retry with backoff, queue for later, or use a fallback. Also returns 30-day test pass rate, known limitations, and cost envelope. Use this to decide whether a capability is safe for production use right now.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesCapability or solution slug, e.g. 'swedish-company-data' or 'eu-company-due-diligence'
typeNoWhether this is a capability or a bundled solutioncapability

Implementation Reference

  • Tool registration for 'strale_trust_profile' in the MCP server.
    server.registerTool(
      "strale_trust_profile",
      {
        description:
          "Check if a capability is reliable before calling it. Returns SQS quality score (0-100), Quality grade (A-F for code correctness), Reliability grade (A-F for uptime and latency), and execution guidance: whether to call directly, retry with backoff, queue for later, or use a fallback. Also returns 30-day test pass rate, known limitations, and cost envelope. Use this to decide whether a capability is safe for production use right now.",
        inputSchema: z.object({
          slug: z
            .string()
            .describe(
              "Capability or solution slug, e.g. 'swedish-company-data' or 'eu-company-due-diligence'",
            ),
          type: z
            .enum(["capability", "solution"])
            .default("capability")
            .describe("Whether this is a capability or a bundled solution"),
        }),
      },
  • The handler implementation for 'strale_trust_profile' which fetches trust data from the Strale API based on the provided slug and type.
    async ({ slug, type }) => {
      const endpoint =
        type === "solution"
          ? `/v1/internal/trust/solutions/${encodeURIComponent(slug)}`
          : `/v1/internal/trust/capabilities/${encodeURIComponent(slug)}`;
    
      try {
        const resp = await fetch(`${opts.baseUrl}${endpoint}`, {
          headers: { Accept: "application/json" },
          signal: AbortSignal.timeout(15000),
        });
    
        if (resp.status === 404) {
          return {
            content: [
              {
                type: "text" as const,
                text: `No trust profile found for ${type} '${slug}'. Use strale_search to find valid slugs.`,
              },
            ],
          };
        }
    
        if (!resp.ok) {
          const text = await resp.text().catch(() => "");
          return {
            content: [
              {
                type: "text" as const,
                text: `Failed to fetch trust profile: HTTP ${resp.status} — ${text.slice(0, 200)}`,

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/strale-io/strale'

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