Skip to main content
Glama

Classify activity

classify_activity
Read-onlyIdempotent

Suggest scope and Scope 3 category from the bundled deterministic map. No inference is used; unknown activity types return no suggestion.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "activity": "<activity>"
    },
    "name": "classify_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
activityYesOne activity: {activity_type, quantity, unit, region, year}.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changed
    • addedInput schema / properties / activity / description
      Added value: +"One activity: {activity_type, quantity, unit, region, year}."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral facts: the mapping is deterministic, no inference is used, and unknown activity types yield no suggestion rather than a guess. That last point is important for an agent to interpret an empty result correctly.

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 short sentences with no filler, and the core function is stated first. The 'no inference' and 'no suggestion' clauses each carry distinct information rather than restating the opening.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. The description still supplies the two things structured fields cannot convey: determinism and the empty-result case. Only the relationship to sibling tools (calculation vs classification) is left implicit.

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

Parameters3/5

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

There is a single parameter with 100% schema description coverage, and the schema already documents the expected shape {activity_type, quantity, unit, region, year}. The description adds no field-level meaning such as which fields actually drive the lookup versus which are ignored. With one fully documented parameter, the baseline 3 is appropriate.

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?

The description states a specific verb and resource combination: it 'suggests scope and Scope 3 category' for an activity. It also names the mechanism ('bundled deterministic map'), which separates it from calculation-oriented siblings like calculate_inventory. It falls short of a 5 because it never explicitly contrasts itself with those siblings by name.

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?

Usage is only implied: the tool is for mapping an activity to a scope/category, presumably before inventory math. There is no explicit statement of when to prefer this over calculate_inventory or when a result should be verified with verify_result. The note that unknown activity types return nothing is behavior, not routing guidance.

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.