Shared Forest

v1.5.0
io.github.ArneFfm/shared-forest Checked 1 day ago Published 2 months ago

Plant or sponsor trees in a shared forest that grows from its traffic.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_forest_stats Forest statistics

Read-only. Counts of trees, groves, total and unique visitors, and traffic by class (humans, agents, bots, trees planted today).

ParameterTypeDescription
fieldsarrayReturn only these counters. Omit for all counters.

get_forest Forest summary

Read-only. Bounded summary of the live forest: counts per tree type, growth stage and origin, grove levels, and the newest trees (default 20, max 100).

ParameterTypeDescription
bboxarrayBounding box [minX, minY, maxX, maxY] in world coordinates. Only trees inside it are returned.
limitintegerNumber of newest trees to return.

list_trees List trees

Read-only. One page of trees with cursor pagination, the same data as GET /api/forest?limit=. Pass nextCursor as cursor until it is null.

ParameterTypeDescription
limit *integerTrees per page, for example 100.
bboxarrayBounding box [minX, minY, maxX, maxY] in world coordinates. Only trees inside it are returned.
cursorstringOpaque cursor from nextCursor of the previous page.

plant_tree Plant a tree

Plant one tree in the Shared Forest for the caller. One tree per visitor per day; repeats only add growth energy. The visit counts as agent traffic. Ask the user before you call it.

ParameterTypeDescription
idempotency_keystringOptional retry key, for example a UUID. A retry with the same key within 24 hours returns the first visitId and plants nothing new.

explain_shared_forest Explain Shared Forest

Read-only. Returns the full agent guide as Markdown: growth rules, API, tools and limits.

ParameterTypeDescription
sectionstringReturn only the section whose heading contains this text, for example 'Limits' or 'MCP tools'. Omit for the whole guide.

get_price_quote Quote a tree sponsorship

Read-only. Final price for sponsoring N trees for 12 months: unit price, total in euro cents and discount. Call it before you tell the user a price.

ParameterTypeDescription
quantity *integerNumber of trees, 1-100. Larger orders get a lower unit price.

design_tree Design a sponsored tree

Turns a short wish (for example 'a silver birch with lanterns') into a premium tree design. An AI paints the tree after the call (about 30 s); the first painting becomes the tree. Returns design_id and the tree genome. Max 3 design attempts per caller per day (including rejected or interrupted generation). Show the result to the user before you order.

ParameterTypeDescription
wish *stringWhat the tree should look like, 1-200 characters. No brands, logos or text.

get_design Read a tree design

Read-only. Returns one design by design_id: genome, genomeHash and expiresAt.

ParameterTypeDescription
design_id *stringDesign id from design_tree, for example dsn_abc123.

find_spots Find free spots

Read-only. Suggests free positions for N sponsored trees, optionally near a point. Pass the spots to start_sponsorship, or omit spots there and the server picks them.

ParameterTypeDescription
quantity *integerNumber of trees, 1-100. Larger orders get a lower unit price.
near_xnumberOptional x coordinate (0-8192) to search near. Needs near_y.
near_ynumberOptional y coordinate (0-8192) to search near. Needs near_x.

start_sponsorship Start a tree sponsorship

Needs OAuth scope sponsor:write (a Shared Forest account). Creates an unpaid order for the signed-in user and holds the spots. It charges nothing. The total must fit the spending limit the user set when connecting. The order expires after 30 minutes unless the user confirms. Returns confirm_url: give it to your user. The user logs in, accepts the terms and pays on that page. Ask the user before you call it and confirm name and total.

ParameterTypeDescription
design_ids *arrayOne design_id for all trees, or one per tree.
display_name *stringName shown on the trees, 1-32 characters, labelled Sponsored.
idempotency_key *stringRetry key, for example a UUID. A retry with the same key returns the same order.
quantity *integerNumber of trees, 1-100. Larger orders get a lower unit price.
emailstringOptional email for the confirmation and the invoice. Default: the email of the signed-in account.
linkstringOptional https link. It goes live after manual review.
link_textstringOptional public label for the link. Requires link; approved with it.
short_descriptionstringOptional short public description. Requires link; approved with it.
spotsarrayOptional positions from find_spots, one per tree. Omit and the server picks free spots.

get_order Read a sponsorship order

Read-only. Needs OAuth scope account:read or sponsor:write. Status of one of the user's orders (open, paid, fulfilled, expired, refunded, disputed, cancelled, refund_pending) and its tree ids once fulfilled. Poll every 10 seconds or more after the user pays.

ParameterTypeDescription
order_id *stringOrder id from start_sponsorship, for example ord_abc123.

my_orders My sponsorship orders

Read-only. Needs OAuth scope account:read. The signed-in user's sponsorship orders, newest first, with status, total and tree ids.

ParameterTypeDescription
limitintegerNumber of orders, 1-50.

my_trees My sponsored trees

Read-only. Needs OAuth scope account:read. The trees of the signed-in user's fulfilled orders, with a link to each tree in the forest.

ParameterTypeDescription
limitintegerNumber of trees, 1-500.