Skip to main content
Glama

Mencoro

Mark a cited host not a competitor

set_project_source_relation
Idempotent

Correct the classifier on one host a project cites, for the whole host and every date range: notCompetitor=true marks a host the classifier detects as a competitor (get_project_sources: sourceType competitor, relationOrigin classifier) as not a competitor, so it reads as its site type, counts as a third-party opportunity and gets its Growwer offer again; notCompetitor=false takes the mark back. A later reclassification keeps the mark. Refused for a host on the brand's or a tracked competitor's domains (relationOrigin settings: change the project instead), a host with no classified verdict yet, or notCompetitor=true on a host the classifier does not detect as a competitor. Manager or owner. Answers the host's sourceType, siteType, relationOrigin and detectedCompetitorName now. Safe to retry.

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": {
      "organizationId": "<organizationId>",
      "projectId": "<projectId>",
      "host": "<host>",
      "notCompetitor": "<notCompetitor>"
    },
    "name": "set_project_source_relation"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYesThe host as get_project_sources returns it (e.g. "example.com", "www.example.com"); case is ignored, a "www." host no source is listed under is read without its "www.", and a URL, or a host followed by a port or a path, is reduced to its host.
projectIdYes
notCompetitorYestrue marks the host not a competitor; false takes the mark back.
organizationIdYes

Output Schema

NameRequiredDescriptionDefault
siteTypeYes
sourceTypeYesThe label the host now reads under: competitor while the classifier's relation counts, its site type once the team marked it not a competitor.
relationOriginYesmanual while the team's "No es competidor" holds, classifier otherwise.
detectedCompetitorNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / host / description
      Previous value: -"The host as get_project_sources returns it; \"www.\" and case are ignored."New value: +"The host as get_project_sources returns it (e.g. \"example.com\", \"www.example.com\"); case is ignored, a \"www.\" host no source is listed under is read without its \"www.\", and a URL, or a host followed by a port or a path, is reduced to its host."
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (idempotentHint=true, destructiveHint=false), and the description adds substantial context beyond them: what the mark actually changes (reads as its site type, counts as a third-party opportunity, regains its Growwer offer), that a later reclassification preserves the mark, and the exact refusal cases. The 'safe to retry' line largely restates idempotentHint, so it is not fully additive, but the mutation semantics and permission requirement are well disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and the notCompetitor semantics before the exceptions, and no sentence is filler. The sentences are long and clause-dense, which costs some readability, but the ordering is logical and the information density justifies the length.

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?

For a mutation tool with a real refusal surface, the description covers the action, both parameter directions, persistence, permissions, failure modes, and the sibling alternative. An output schema exists, so the brief note on the returned fields is a bonus rather than a necessity — nothing an agent needs in order to call this correctly is missing.

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?

Schema coverage is only 50%: host and notCompetitor are documented in the schema, while projectId and organizationId have no descriptions anywhere. The description reinforces notCompetitor's two-way meaning and clarifies that the change applies to the whole host across all date ranges, which is genuine added meaning, but it does not compensate for the two undocumented identifier parameters.

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?

States a specific verb and resource — correcting the classifier's verdict on one host a project cites — and pins the scope as 'the whole host and every date range'. It also defines both directions of notCompetitor precisely, so an agent can distinguish this from get_project_sources (which only reads sourceType/relationOrigin) without opening either schema.

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?

Explicitly names the case this tool is for (a host the classifier flags as a competitor), the case where a different route is required ('relationOrigin settings: change the project instead'), and three refusal conditions. It also states the 'Manager or owner' role prerequisite, leaving little to inference.

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.